Function at 0x4d0870
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov eax, ecx
mov dword [esp + 0x1c], 0
push esi
mov dword [esp + 0x10], eax
xor ebx, ebx
push edi
mov esi, dword [eax + 8]
mov edi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], esi
mov eax, dword [edi]
movzx ecx, byte [edi + 0x20]
not ecx
and ecx, 1
mov eax, dword [eax]
mov dword [esp + 0x30], eax
add eax, ecx
add eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4d08d0
mov edx, dword [ebp + 0xc]
sub edx, eax
jmp 0x4d08dd
mov eax, dword [ecx + 0x2c]
lea edx, [eax + 1]
add eax, dword [esp + 0x34]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4d08ee
inc eax
jmp 0x4d08f4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
mov dword [edi + 0x18], eax
setne al
lea eax, [eax*4 + 1]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [edi]
call fcn.004a3980
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x4d0985
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4d0956
push 0
push edx
push eax
mov edx, 0x7d
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0981
mov edi, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x7d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0x18], ebx
jne 0x4d09f9
cmp dword [ebp + 0x14], ebx
jle 0x4d09f9
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0xc]
add edx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x38], eax
cmp dword [ecx + 0x78], eax
jg 0x4d09c6
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
mov edx, 0x4e
call fcn.004845f0
add esp, 0xc
jmp 0x4d09f9
mov edi, dword [ebp + 0xc]
inc eax
mov dword [ecx + 0x74], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
cmp dword [esp + 0x18], ebx
jle 0x4d0dfd
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004d07e0
mov dword [esp + 0x30], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 4]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0x2c], ecx
mov ecx, edx
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4d0a8c
add edx, dword [esp + 0xc]
cmp dword [esi + 0x78], ecx
jg 0x4d0a77
push 0
push 0
push edx
mov edx, 0x14
mov ecx, esi
call fcn.004845f0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4d0ad5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x14
jmp 0x4d0ac1
mov edx, dword [edi + 8]
cmp dword [esi + 0x78], ecx
jg 0x4d0aae
push 0
push 0
push edx
mov edx, 0x77
mov ecx, esi
call fcn.004845f0
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4d0ad5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x77
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0x10], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esi + 0x74]
mov eax, dword [edi + 4]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4d0afe
push eax
push dword [esp + 0x10]
mov edx, 0x59
mov ecx, esi
push dword [esp + 0x34]
call fcn.004845f0
add esp, 0xc
jmp 0x4d0b2d
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [edi + 0x14]
test ecx, ecx
jns 0x4d0b38
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], bl
je 0x4d0b46
mov ecx, 0x5abde4
jmp 0x4d0b4f
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
cmp byte [eax + 0x57], bl
jne 0x4d10ac
mov eax, dword [ebp + 0x14]
add eax, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x20], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call fcn.00533fc0
mov ecx, dword [esi]
add esp, 0xc
cmp byte [ecx + 0x57], bl
je 0x4d0ba3
push dword [esp + 0x20]
mov edx, 0xfffffff7
call fcn.00485100
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x4d0bd9
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
cmp byte [eax + ecx*4 - 0x13], bl
lea ecx, [eax + ecx*4]
je 0x4d0bce
push 0xfffffffffffffff7
push dword [esp + 0x24]
lea edx, [ecx - 0x14]
mov ecx, esi
call fcn.00485350
mov eax, dword [esp + 0x28]
add esp, 8
jmp 0x4d0bd9
mov eax, dword [esp + 0x20]
mov dword [ecx - 4], eax
mov byte [ecx - 0x13], 0xf7
movzx ecx, word [eax + 8]
movzx eax, word [eax + 6]
mov edx, dword [edi]
sub ecx, eax
dec ecx
push ecx
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.004d25c0
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x20], eax
lea edx, [eax + 1]
cmp dword [esi + 0x78], eax
jg 0x4d0c22
push edx
push 0
push edx
mov edx, 0x10
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0c46
mov edi, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edx
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esp + 0x14]
dec dword [ecx + 0x38]
mov eax, dword [ecx + 0x38]
mov dword [edi + 0x10], eax
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edi + 0x10]
mov dword [edi + 0xc], edx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4d0c80
push 0
push eax
push edx
mov edx, 0xc
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0cab
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 8]
cmp dword [esi + 0x78], ecx
jg 0x4d0ccc
push 0
push 0
push edx
mov edx, 0x91
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0cf3
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d0d46
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x4d0d1b
push 0
push edx
push eax
mov edx, 0x14
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0d46
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], bl
je 0x4d0d57
mov eax, 0x5abde4
jmp 0x4d0d6c
mov ecx, dword [esp + 0x28]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [ecx + 0x74]
cmp dword [ecx + 0x78], edx
jg 0x4d0da1
push eax
push dword [esp + 0x30]
mov edx, 0x4e
push dword [esp + 0x14]
call fcn.004845f0
add esp, 0xc
jmp 0x4d0dd4
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], ebx
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], bl
je 0x4d0de5
mov eax, 0x5abde4
jmp 0x4d0dfa
mov ecx, dword [esp + 0x20]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp dword [esp + 0x1c], ebx
je 0x4d0fa8
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], edx
lea eax, [ecx + 4]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4d0e3c
push 0
push eax
push dword [esp + 0x24]
mov edx, 0x3b
mov ecx, esi
call fcn.004845f0
mov edx, dword [esp + 0x2c]
lea ebx, [esi + 0x70]
add esp, 0xc
jmp 0x4d0e75
mov edi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ebx, [esi + 0x70]
mov eax, dword [ebx]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x3b
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], ebx
cmp dword [esi + 0x78], ecx
jg 0x4d0e9b
push 0
push 0
push edx
mov edx, 0x22
mov ecx, esi
call fcn.004845f0
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4d0ec9
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x22
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
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x18]
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x78], ebx
jg 0x4d0ef0
push eax
push 0
push edx
mov edx, 0x27
mov ecx, esi
call fcn.004845f0
add esp, 0xc
mov ebx, eax
jmp 0x4d0f2a
mov edi, dword [esp + 0xc]
lea eax, [ebx + 1]
add edi, dword [esp + 0x18]
lea ecx, [ebx + ebx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x20]
cmp byte [eax + 0x57], 0
jne 0x4d0f54
mov eax, dword [esp + 0x2c]
lea ecx, [ebx + ebx*4]
mov edi, dword [esp + 0x30]
sub edi, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 0x10], edi
mov edi, dword [esp + 0x10]
mov byte [eax + ecx*4 + 1], 0xfd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4d0f72
push 0
push 0
push edx
mov edx, 0x81
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4d0fa8
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x81
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
cmp dword [esp + 0x24], 0
jne 0x4d0fcc
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x10]
push dword [ebp + 8]
call fcn.004d07e0
add esp, 0xc
mov dword [esp + 0x24], eax
movzx edx, byte [edi + 0x20]
mov eax, dword [esp + 0xc]
and edx, 1
mov ecx, dword [edi + 8]
add edx, 0x89
mov edi, dword [esi + 0x74]
add eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edi
cmp dword [esi + 0x78], edi
jg 0x4d1008
push eax
push dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004845f0
add esp, 0xc
mov edi, eax
jmp 0x4d104f
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4d106e
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
test ebx, ebx
je 0x4d10ac
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x4d1080
mov edx, dword [esi + 0x74]
test ebx, ebx
jns 0x4d1088
mov ebx, dword [esi + 0x74]
dec ebx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x4d109f
mov eax, 0x5abde4
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret