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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov ecx, dword [eax + 8]
push edi
push eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x30], ecx
call fcn.004895b0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
add esp, 4
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov ebx, dword [esi + 0x34]
xor edi, edi
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov ebp, eax
xor esi, esi
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x14], edx
lea ecx, [eax + ecx*8]
cmp ebp, ecx
mov dword [esp + 0x20], ecx
jae 0x4a227b
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push ebp
call fcn.004a2590
add esp, 0x10
test eax, eax
je 0x4a2268
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
jl 0x4a21d0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], closesocket
jmp 0x4a21e4
mov eax, 1
xor edx, edx
call fcn.004b0f00
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov al, byte [esp + 0x13]
test al, al
jne 0x4a2217
mov eax, dword [ebp + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [ecx + edx*8]
push edx
push eax
push str.automatic_index_on__s__s_
push 0x11c
call fcn.0045a670
add esp, 0x10
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
and eax, edi
and ecx, esi
or eax, ecx
jne 0x4a2268
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
mov eax, dword [edx]
push eax
call fcn.004a3f90
add esp, 0xc
test eax, eax
jne 0x4a257a
mov ecx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4], ebp
mov ecx, dword [esp + 0x24]
inc eax
inc edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
or edi, ecx
mov dword [esp + 0x1c], edx
or esi, eax
mov eax, dword [esp + 0x20]
add ebp, 0x28
cmp ebp, eax
jb 0x4a2196
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov eax, edx
and eax, 0xffff
mov word [ebx + 0x28], dx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x24], 0x4241
mov eax, dword [ecx + 0x38]
mov ebp, dword [ecx + 0x3c]
mov ecx, dword [esp + 0x18]
not edi
not esi
or esi, 0x80000000
and edi, eax
mov ax, word [ecx + 0x26]
and esi, ebp
cmp ax, 0x3f
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], eax
jl 0x4a22cc
mov dword [esp + 0x1c], 0x3f
jmp 0x4a22d3
movsx ecx, ax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
xor esi, esi
test ecx, ecx
jle 0x4a230c
mov ecx, esi
mov eax, 1
xor edx, edx
call fcn.004b0f00
mov ecx, dword [esp + 0x38]
and eax, edi
and edx, ecx
or eax, edx
je 0x4a22fb
inc dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4a22dd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
and ebp, 0x80000000
xor ecx, ecx
or ecx, ebp
je 0x4a2325
movsx eax, ax
lea ecx, [edx + eax - 0x3f]
mov dword [esp + 0x14], ecx
mov edx, ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x24], 0x4241
lea edx, [edx + edx*8 + 0x34]
mov ecx, dword [eax]
push edx
push ecx
call fcn.0045e8b0
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
je 0x4a257a
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x34]
mov dword [ebx + 0x1c], esi
mov dword [esi + 0x20], eax
lea eax, [eax + ecx*4]
mov dword [esi], str.auto_index
mov dword [esi + 4], eax
mov word [esi + 0x2c], cx
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc], edx
mov ebp, dword [eax + 0x14]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], edi
cmp ebp, eax
mov dword [esp + 0x28], edi
jae 0x4a2439
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push ebp
call fcn.004a2590
add esp, 0x10
test eax, eax
je 0x4a2426
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
jl 0x4a23be
xor eax, eax
mov edx, closesocket
jmp 0x4a23ca
mov eax, 1
xor edx, edx
call fcn.004b0f00
mov ebx, dword [esp + 0x24]
mov ecx, eax
and ecx, ebx
mov ebx, edx
and ebx, dword [esp + 0x28]
or ecx, ebx
jne 0x4a2426
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebp]
or ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x28]
or ebx, edx
mov edx, dword [esi + 4]
mov dword [esp + 0x28], ebx
mov dword [edx + edi*4], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
call fcn.00488d40
add esp, 0xc
test eax, eax
je 0x4a2419
mov eax, dword [eax]
jmp 0x4a241e
mov eax, str.BINARY
mov ecx, dword [esi + 0x20]
inc edi
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [esp + 0x20]
add ebp, 0x28
cmp ebp, eax
jb 0x4a2391
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
test ebp, ebp
jle 0x4a247d
mov ecx, ebx
mov eax, 1
xor edx, edx
call fcn.004b0f00
mov ecx, dword [esp + 0x34]
and eax, ecx
mov ecx, dword [esp + 0x38]
and edx, ecx
or eax, edx
je 0x4a2474
mov edx, dword [esi + 4]
inc edi
mov dword [edx + edi*4 - 4], ebx
mov eax, dword [esi + 0x20]
mov dword [eax + edi*4 - 4], 0x4e0d24
inc ebx
cmp ebx, ebp
jl 0x4a2443
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov ecx, dword [ecx + 0x3c]
and ecx, 0x80000000
or eax, ecx
je 0x4a24c0
mov ecx, 0x3f
cmp word [edx + 0x26], cx
jle 0x4a24c0
lea eax, [edi*4]
mov edi, dword [esi + 4]
add eax, 4
mov dword [eax + edi - 4], ecx
mov edi, dword [esi + 0x20]
inc ecx
mov dword [eax + edi - 4], 0x4e0d24
movsx edi, word [edx + 0x26]
cmp ecx, edi
jl 0x4a24a2
mov edi, dword [esp + 0x40]
push esi
push edi
call fcn.004909a0
mov ebp, dword [esp + 0x5c]
mov edx, dword [edi + 0x48]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 8], edx
mov ebx, dword [edi + 0x48]
push 0
inc ebx
inc eax
mov dword [edi + 0x48], ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x40]
push eax
push ecx
push 0x32
push ebx
call fcn.00486710
mov edx, dword [ebp + 4]
push edx
push 0x65
push ebx
call fcn.00487bd0
push edi
mov dword [esp + 0x7c], eax
call fcn.00487130
mov ecx, dword [esp + 0x74]
mov edi, eax
mov eax, dword [ebp + 4]
push 0
push 1
push edi
push eax
push esi
push ecx
call fcn.00491800
mov edx, dword [ebp + 8]
add esp, 0x4c
push edi
push edx
push 0x67
push ebx
call fcn.004870f0
push 0x10
push ebx
call fcn.00487620
mov esi, dword [esp + 0x60]
mov ecx, dword [ebp + 4]
lea eax, [esi + 1]
push eax
push ecx
push 7
push ebx
call fcn.004870f0
push 3
push ebx
call fcn.00487620
push esi
push ebx
call fcn.00487110
mov edx, dword [esp + 0x78]
push edi
push edx
call fcn.00487160
mov eax, dword [esp + 0x70]
add esp, 0x40
push eax
push ebx
call fcn.00487110
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret