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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov eax, dword [ecx + 0x40]
mov esi, dword [ebx]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], eax
test eax, eax
je 0x4b41a0
cmp dword [eax], esi
je 0x4b419c
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4b4191
mov dword [esp + 0x40], eax
movsx eax, word [ecx + 0x2a]
mov ecx, dword [ebx + 0x28]
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x18], eax
lea eax, [ecx + 1]
mov dword [esp + 0x34], 0
mov dword [ebx + 0x28], eax
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
cmp dword [edi + 0x70], edx
jg 0x4b41ef
push 0
push dword [esp + 0x20]
mov edx, 0x64
push ecx
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4b4222
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
push 0
lea ecx, [eax + 1]
add eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x2c], eax
cmp dword [ecx], 1
jle 0x4b4434
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4b425b
push 0
mov ecx, esi
call fcn.00481720
add esp, 8
mov dword [esp + 0x30], eax
jmp 0x4b42b1
mov ecx, dword [ebx]
push 0x34
call fcn.0044ba80
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
test esi, esi
je 0x4b42b1
push 0x34
push 0
push esi
call fcn.0059d550
add esp, 0xc
mov byte [esi], 0x4b
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
mov ecx, dword [ebx]
push 0
push 0
call fcn.004810c0
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4b42b1
push eax
push str.SCopy
push ebx
call fcn.0044ed00
add esp, 0xc
mov eax, dword [ebx]
mov ecx, eax
push 0
push 0x18
mov dword [esp + 0x34], eax
call fcn.0044ba80
mov esi, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
add esp, 8
test esi, esi
je 0x4b42eb
mov dword [esi], 0
xorps xmm0, xmm0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
mov dword [esi + 4], eax
jmp 0x4b4300
test eax, eax
je 0x4b42fa
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.00481520
xor esi, esi
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
cmp dx, word [eax + 0x2a]
jge 0x4b43fd
mov edi, dword [esp + 0x38]
nop dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4b436f
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 4]
test edx, edx
je 0x4b435b
push 0
push 0
mov ecx, edi
call fcn.00481720
add esp, 8
mov edx, esi
mov ecx, ebx
push eax
call fcn.004822a0
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x4b43de
xor eax, eax
mov edx, esi
push eax
mov ecx, ebx
call fcn.004822a0
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x4b43de
mov ecx, dword [ebx]
push 0
push 0x34
call fcn.0044ba80
mov esi, eax
add esp, 8
test esi, esi
je 0x4b43cc
push 0x34
push 0
push esi
call fcn.0059d550
add esp, 0xc
mov byte [esi], 0x4b
or eax, 0xffffffff
mov edx, esi
mov word [esi + 0x22], ax
mov ecx, dword [ebx]
push 0
push 0
call fcn.004810c0
mov eax, dword [ebx]
add esp, 8
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4b43c3
push eax
push str.SCopy
push ebx
call fcn.0044ed00
add esp, 0xc
mov eax, dword [esp + 0x30]
inc eax
mov word [esi + 0x20], ax
mov edx, dword [esp + 0x28]
mov ecx, ebx
push esi
call fcn.004822a0
mov esi, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
movsx eax, word [eax + 0x2a]
cmp ecx, eax
jl 0x4b4320
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
sub esp, 8
mov ecx, ebx
push dword [ebp + 0x18]
push dword [esp + 0x48]
push esi
push 0
call fcn.004b1a20
add esp, 0x18
test esi, esi
je 0x4b4427
mov ecx, dword [esp + 0x38]
mov edx, esi
call fcn.00482600
mov dword [esp + 0x20], 0
jmp 0x4b48e4
push 4
inc eax
mov edx, ecx
push 0
mov dword [esp + 0x38], eax
mov ecx, ebx
inc eax
push 0
push dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov dword [ebx + 0x2c], eax
call fcn.004c23c0
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x4b4b52
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x2a]
jge 0x4b44ff
mov ecx, dword [esp + 0x10]
mov edx, 0xfffffffe
mov eax, dword [ebp + 0x14]
sub edx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
js 0x4b4537
cmp dword [ebx + 8], 0
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 4]
mov dword [esp + 0x44], eax
je 0x4b44e4
push esi
mov edx, eax
mov ecx, ebx
call fcn.00485960
add esp, 4
cmp eax, esi
je 0x4b44e0
mov edx, dword [esp + 0x44]
mov ecx, dword [ebx + 8]
push esi
push eax
mov edx, dword [edx + 4]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
call fcn.0046abb0
add esp, 8
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
inc esi
add dword [esp + 0x38], 4
movsx eax, word [eax + 0x2a]
lea ecx, [edx + esi]
cmp ecx, eax
mov eax, dword [esp + 0x38]
jl 0x4b4490
mov eax, dword [ebp + 8]
test byte [eax + 0x24], 0x80
jne 0x4b4654
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b45b0
push 0
push dword [esp + 0x14]
mov edx, 0x7f
mov ecx, edi
push dword [esp + 0x20]
call fcn.0046aa40
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x4b45e3
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b455d
lea eax, [edx + esi]
mov ecx, edi
push esi
push eax
push dword [esp + 0x20]
mov edx, 0xa6
call fcn.0046aa40
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4b458c
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
lea eax, [edx + esi]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4b44e4
lea ecx, [eax + eax*4]
mov ebx, 1
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], bx
mov ebx, dword [esp + 0x24]
jmp 0x4b44e4
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4b4639
cmp dword [ebx + 8], 0
mov edx, dword [esp + 0x10]
lea eax, [edx + 1]
je 0x4b4726
push eax
mov edx, esi
mov ecx, ebx
call fcn.00485960
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + 1]
cmp eax, ecx
je 0x4b4726
mov edx, dword [esi + 4]
and edx, 0x200000
neg edx
push ecx
mov ecx, dword [ebx + 8]
sbb edx, edx
push eax
add edx, 0x4e
call fcn.0046abb0
add esp, 8
jmp 0x4b4722
mov eax, dword [esp + 0x10]
mov ecx, edi
inc eax
push eax
push edx
mov edx, 0x7f
call fcn.0046abb0
add esp, 8
jmp 0x4b4722
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b4670
nop dword [eax + eax]
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4b4670
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4b4660
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 0x6c]
movzx eax, word [eax]
movsx esi, ax
cmp dword [edi + 0x70], ecx
jg 0x4b469b
push dword [esp + 0x10]
mov edx, 0xa6
mov ecx, edi
push esi
push dword [esp + 0x20]
call fcn.0046aa40
add esp, 0xc
jmp 0x4b46ca
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
add esi, 2
mov ecx, dword [edi + 0x6c]
add esi, eax
lea edx, [eax + 1]
cmp dword [edi + 0x70], ecx
jg 0x4b46f3
push 0
push edx
push esi
mov edx, 0x4e
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
jmp 0x4b4722
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
movzx esi, byte [eax + 0x2e]
mov dword [esp + 0x20], esi
test esi, esi
je 0x4b47c6
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4b4772
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
push dword [eax + ecx*4 + 0x10]
movsx edx, byte [eax + ecx*4 + 1]
lea esi, [eax + ecx*4]
mov ecx, dword [edi]
call fcn.0046b690
mov word [esi], 0xad
add esp, 4
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b4796
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x74
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
jmp 0x4b48dc
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
jmp 0x4b48d4
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b47f6
push dword [esp + 0x2c]
mov ecx, edi
push dword [esp + 0x20]
push edx
mov edx, 0x5b
call fcn.0046aa40
add esp, 0xc
jmp 0x4b4829
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b4850
push 0
push dword [esp + 0x34]
mov edx, 0x78
mov ecx, edi
push dword [esp + 0x1c]
call fcn.0046aa40
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4b4887
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b48a9
push dword [esp + 0x30]
mov ecx, edi
push dword [esp + 0x30]
push edx
mov edx, 0x79
call fcn.0046aa40
add esp, 0xc
jmp 0x4b48dc
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
jne 0x4b49bf
mov eax, dword [esp + 0x3c]
cmp dword [eax], 1
jne 0x4b48f6
mov ecx, dword [esp + 0x34]
call fcn.004c2ec0
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x28], edx
cmp dword [edi + 0x70], edx
jg 0x4b491f
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x25
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4b4952
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4b49bb
mov ebx, dword [esp + 0x14]
nop
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4b4982
mov eax, dword [esp + 0x10]
mov edx, 0x59
add eax, esi
mov ecx, edi
push eax
push esi
push ebx
call fcn.0046aa40
add esp, 0xc
jmp 0x4b49b0
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4b4960
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004b6ff0
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x4b49ee
push dword [esp + 0x10]
mov edx, 0xa
mov ecx, edi
push dword [esp + 0x20]
push 0
call fcn.0046aa40
add esp, 0xc
mov edx, eax
jmp 0x4b4a25
mov esi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff4
push dword [esp + 0x44]
mov ecx, edi
call fcn.0046b930
mov ecx, dword [edi + 0x6c]
add esp, 8
test ecx, ecx
jle 0x4b4a5d
mov eax, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
movzx edx, ax
cmp eax, 0xb
mov eax, dword [edi + 0x68]
mov dword [esp + 0x44], 2
cmove edx, dword [esp + 0x44]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebx + 0x74]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
test esi, esi
jne 0x4b4b49
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi + 0x6c]
lea edx, [ebx + 1]
cmp dword [edi + 0x70], ecx
jg 0x4b4a95
push esi
push edx
push dword [esp + 0x1c]
lea edx, [esi + 5]
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
jmp 0x4b4ac4
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x6c]
test ebx, ebx
jns 0x4b4ace
lea ebx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4b4add
mov eax, 0x657384
jmp 0x4b4ae6
mov eax, dword [edi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [edi + 0x6c]
cmp dword [edi + 0x70], esi
jg 0x4b4b0f
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x74
mov ecx, edi
call fcn.0046aa40
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
call fcn.004c2ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret