Function at 0x4b4191
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [esp + 0x54]
cmp edi, 2
jne 0x4b3947
push 1
lea ecx, [esp + 0xc0]
call 0x51aa23
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0xb4]
push edx
call 0x51b2c9
cmp eax, ebp
jne 0x4b38e7
xor ecx, ecx
jmp 0x4b38ea
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
push ecx
and eax, edx
push eax
mov eax, dword [esp + 0xc8]
push eax
call dword [0x4b9070]
mov dword [esp + 0xb4], 0x54d7c0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x284], 0x11
call 0x51b263
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0xc0]
push edx
push eax
mov byte [esp + 0x290], 0x10
call 0x4c41e0
add esp, 0xc
cmp dword [esp + 0x144], 1
jne 0x4b4115
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jg 0x4b3e2c
cmp edi, 1
jne 0x4b3ab3
mov eax, dword [esp + 0x38]
xor edi, edi
xor ebx, ebx
cmp eax, ebp
jle 0x4b3996
push ebx
mov ecx, esi
call fcn.004b2a70
push eax
push edi
mov ecx, esi
call fcn.004b2c30
mov edi, eax
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
jl 0x4b397a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
cmp ebx, eax
jge 0x4b39be
push ebx
mov ecx, esi
call fcn.004b2a70
push eax
push edi
mov ecx, esi
call fcn.004b2c30
mov edi, eax
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jl 0x4b39a2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add edi, edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebp
call dword [0x4b9618]
lea ecx, [esp + 0x14]
push ecx
call dword [0x4b9658]
test eax, eax
jne 0x4b3e2c
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [0x4b9180]
lea ecx, [esp + 0x14]
push ecx
call dword [0x4b90f4]
push eax
lea ecx, [esp + 0x4c]
call 0x51b20c
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
neg eax
sbb eax, eax
push 4
and eax, edi
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [0x4b9068]
lea ecx, [esp + 0x48]
call 0x51b263
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [0x4b9184]
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0xc0]
call 0x51a860
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub eax, edx
sub ecx, edi
push 0xf00021
push eax
push ecx
push edx
mov edx, dword [esp + 0xd0]
push edi
push edx
call dword [0x4b9074]
jmp 0x4b3e2c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
sub eax, edx
xor ebx, ebx
mov dword [esp + 0x2c], eax
lea edi, [eax - 1]
cmp edi, ecx
mov dword [esp + 0x24], edi
jge 0x4b3e2c
jmp 0x4b3adc
push 0x563dc4
push eax
call dword [0x4b96d0]
add byte [ebp + 0x9c248c], cl
add byte [eax], al
add esp, 0xc
test ecx, ecx
je 0x4b408e
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4b408e
mov edx, dword [esp + 0xc0]
push eax
push edx
call dword [0x4b9080]
push 0
lea ecx, [esp + 0xc0]
call 0x51a9f4
lea eax, [esp + 0x248]
lea ecx, [esp + 0x158]
push eax
call 0x51435e
mov eax, dword [esp + 0x158]
lea edx, [esp + 0x14]
push 0x825
push edx
mov ecx, dword [eax - 8]
mov byte [esp + 0x28c], 0x12
push ecx
push eax
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xcc]
call dword [eax + 0x68]
lea ecx, [esp + 0x158]
add byte [eax], al
mov byte [esp + 0x284], 0x10
call 0x5142f0
cmp edi, 2
jne 0x4b4288
cmp dword [esp + 0x78], 4
jg 0x4b41d3
cmp dword [esp + 0x58], ebp
jne 0x4b41d3
cmp dword [esp + 0x28], ebp
jle 0x4b41d3
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
sub ebx, ecx
cmp ebx, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0xac], ebp
jge 0x4b41d3
mov eax, dword [esp + 0x10]
mov edi, ebx
cmp ebx, eax
jge 0x4b416e
mov ecx, eax
mov eax, dword [esp + 0x38]
sub edi, ecx
add edi, eax
push edi
mov ecx, esi
call fcn.004b2a70
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
push edi
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x54]
push eax
call fcn.004b0390
push eax
mov eax, dword [esp + 0x2c]
inc esp
and al, 0x2c
lea edx, [esp + 0xac]
push 0x10
push edx
dec eax
push edi
mov edi, dword [esp + 0x3c]
push eax
push ebp
lea ecx, [esp + 0xd4]
push edi
push ecx
mov ecx, esi
call fcn.004b6550
mov edx, dword [esp + 0xa8]
mov ecx, esi
push edx
push edi
call fcn.004b2c30
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
inc ebx
cmp ebx, eax
jl 0x4b415a
cmp dword [esp + 0x74], 4
jg 0x4b4288
cmp dword [esp + 0x38], ebp
jne 0x4b4288
cmp dword [esp + 0x10], ebp
jle 0x4b4288
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
sub ebx, ecx
cmp ebx, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0xa8], ebp
jge 0x4b4288
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]