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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x5b16b0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov edx, dword [edi + 0x302c]
push ebx
mov ebx, dword [ebp + 8]
sub edx, 1
test edx, edx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], edx
mov dword [edi + 0x2118], 0xd
jle 0x4e6967
cmp dword [ebx + 0x19c], 0
jne 0x4e6965
cmp dword [edi + 0x1fa8], 0
je 0x4e6965
cmp dword [edi + 0x1fac], 0
je 0x4e6965
movsx eax, byte [edi + 0x3723]
test eax, eax
mov dword [esp + 0x10], 0
jl 0x4e6908
mov dword [esp + 0x10], eax
movsx eax, byte [edi + 0x3724]
cmp dword [esp + 0x10], eax
jg 0x4e6919
mov dword [esp + 0x10], eax
movsx eax, byte [edi + 0x3726]
cmp dword [esp + 0x10], eax
jg 0x4e692a
mov dword [esp + 0x10], eax
movsx eax, byte [edi + 0x3728]
cmp dword [esp + 0x10], eax
jg 0x4e693b
mov dword [esp + 0x10], eax
movsx eax, byte [edi + 0x372b]
cmp dword [esp + 0x10], eax
jg 0x4e694c
mov dword [esp + 0x10], eax
movsx eax, byte [edi + 0x373b]
cmp dword [esp + 0x10], eax
jg 0x4e6961
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x4e6965
mov edx, dword [esp + 0x10]
test edx, edx
jl 0x4e699a
add edx, 1
lea ecx, [ebx + 0x1e4]
lea eax, [edi + 0x1ff0]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov esi, dword [eax]
mov edx, dword [edi + 0x1ef8]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
add eax, 4
add ecx, 0x14
sub dword [esp + 0x14], 1
jne 0x4e6980
lea ecx, [ebx + 0x1e8]
mov dword [esp + 0x14], ecx
xor eax, eax
lea ecx, [ebx + 0x4b8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov ecx, eax
and ecx, reloc.intf.dll_Ordinal_1
jns 0x4e69c3
dec ecx
or ecx, 0xfffffffe
inc ecx
mov esi, dword [edi + 0x36b8]
cdq
sub eax, edx
mov dword [esp + 0x8c], esi
mov edx, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [edi + 0x3008]
sar edx, 1
mov esi, edx
shl esi, 4
add esi, ecx
lea esi, [ebx + esi*8]
mov dword [esp + 0x48], edx
add edx, edx
mov dword [esp + 0x78], esi
add edx, edx
add edx, edx
mov esi, edx
sar esi, 1
mov dword [esp + 0x4c], esi
lea ebx, [ecx*8]
sar ebx, 1
mov dword [esp + 0x44], ebx
shl esi, 4
add esi, ebx
mov ebx, dword [edi + 0x300c]
add ebx, esi
mov dword [esp + 0x7c], ebx
mov ebx, dword [edi + 0x3010]
add ebx, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x80], ebx
xor ebx, ebx
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x36b4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], 3
mov dword [esp + 0x88], eax
mov dword [esp + 0x2c], edx
mov dword [esi], SysReAllocString
mov dword [esp + 0x38], ebx
jl 0x4e6be4
add edx, ecx
lea edx, [edi + edx*2 + 0x372c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
add edx, 0x1e4
mov dword [esp + 0x24], edx
lea edx, [edi + 0x3634]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x14]
lea esi, [edi + 0x3038]
mov dword [esp + 0x34], edx
jmp 0x4e6aa7
mov eax, dword [esp + 0x88]
imul eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x10]
movzx edx, word [edx + ebx*2]
add eax, ecx
lea ecx, [eax*8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], edx
mov edx, dword [esi - 4]
add edx, ecx
mov dword [esp + 0x60], edx
mov edx, dword [esi]
add edx, ecx
mov dword [esp + 0x64], edx
mov edx, dword [esi + 4]
add edx, ecx
mov dword [esp + 0x68], edx
mov edx, dword [esi + 8]
add edx, ecx
mov ecx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x8c]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esi + 0xc]
add ebx, ecx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
add ebx, edx
mov dword [esp + 0x70], ebx
mov ebx, dword [esi + 0x10]
shl eax, 4
add ebx, ecx
mov ecx, dword [esp + 0x28]
add eax, dword [ecx]
mov ecx, dword [esp + 0x3c]
add ebx, edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x38]
movzx eax, bl
imul eax, eax, 0x101
mov word [ecx], ax
mov word [ecx + 8], ax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x90]
push edx
add eax, eax
push 2
add eax, eax
push eax
push 0
push edi
call fcn.004cb730
mov eax, dword [esp + 0x2c]
push 0
add eax, 1
push eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
push edi
call fcn.00511ec0
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0xc4]
add eax, dword [esp + 0x68]
mov dword [ecx], edx
mov ecx, dword [esp + 0x48]
add esp, 0x28
cmp eax, dword [ecx]
mov dword [esp + 0x98], eax
jge 0x4e6bb2
push 0x50
lea edx, [esp + 0x54]
lea eax, [ecx - 0x48]
push edx
push eax
mov eax, dword [edi + 0x4d30]
call eax
add esp, 0xc
add dword [esp + 0x28], 4
mov ecx, dword [esp + 0x1c]
mov eax, 0x14
add dword [esp + 0x24], eax
add dword [esp + 0x34], eax
add ebx, 1
add esi, 0x18
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x38], ebx
jle 0x4e6aa0
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0x18]
add ecx, edx
mov dword [esp + 0x2c], ebx
lea edx, [edi + ecx*8 + 0x37b0]
mov dword [esp + 0x1c], 2
mov ebx, dword [esp + 0x2c]
mov dword [edx], ebx
mov dword [edx + 4], ebx
add edx, 0x20
sub dword [esp + 0x1c], 1
jne 0x4e6c00
movzx edx, byte [esi - 0x3c]
mov ebx, dword [esp + 0x30]
imul edx, edx, 0x101
add dword [esp + 0x14], 4
mov word [edi + ecx*2 + 0x372c], dx
mov word [edi + ecx*2 + 0x3734], dx
mov ecx, dword [ebx]
add dword [esi], ecx
add eax, 1
add esi, 0x50
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
jl 0x4e69b4
mov edx, dword [ebx + 0x5a8]
add edx, dword [ebx + 0x558]
mov eax, dword [ebx + 0x4b8]
add edx, dword [ebx + 0x508]
add eax, edx
mov dword [ebx + 0x1e0], eax
cmp dword [edi + 0x78], 0
jne 0x4e6ca3
mov ecx, dword [ebx + 0x56c]
or ecx, dword [ebx + 0x51c]
or ecx, dword [ebx + 0x4cc]
or ecx, dword [ebx + 0x47c]
jne 0x4e6ca3
mov edx, dword [ebx + 0x10]
movzx ecx, word [edx]
add ecx, ecx
add ecx, ecx
sub eax, ecx
mov dword [ebx + 0x1e0], eax
mov ecx, dword [esp + 0xac]
pop esi
pop ebx
xor ecx, esp
mov byte [edi + 0x211f], 3
mov byte [edi + 0x211e], 3
mov byte [edi + 0x211d], 3
mov byte [edi + 0x211c], 3
call fcn.00499441
mov esp, ebp
pop ebp
ret