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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x78], eax
test esi, esi
mov eax, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x10], eax
jne 0x4d7d17
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00511a80
add esp, 0x7c
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
add eax, 3
push str._s__d
push eax
mov dword [esp + 0x1c], 0
call fcn.00511af7
add esp, 0x10
lea ebx, [esp + 0x10]
lea edi, [esp + 0x1c]
call fcn.004d6230
test eax, eax
jne 0x4d7d88
movzx ecx, word [esi]
push 0x31
lea eax, [esp + 0x54]
push eax
push ecx
call sym.convertifd.exe_IpGetAtom
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x60]
push eax
push 0xfffffc36
call sym.convertifd.exe_IpCCMessage
add esp, 0x18
pop edi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00511a80
add esp, 0x7c
ret
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
cmp eax, 0xb
ja case.default.0x4d7d94
jmp dword [eax*4 + 0x4d8164]
push ebp
call sym.convertifd.exe_IpAddAtom
add esp, 4
test ax, ax
mov word [esi + 2], ax
je 0x4d8142
and dword [esi + 0x10], 0xfffffeff
mov eax, dword [esi + 0x10]
test eax, 0x8000
jne 0x4d7dcb
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
jne 0x4d7dea
and eax, 0xffffff7d
mov dword [esi + 0x10], eax
pop edi
pop ebx
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00511a80
add esp, 0x7c
ret
cmp ecx, 2
jne 0x4d7df8
and eax, 0xffffff7f
or eax, ecx
jmp 0x4d7dd0
cmp ecx, 1
jne case.default.0x4d7d94
and eax, 0xfffffffd
or eax, 0x80
jmp 0x4d7dd0
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0xa], ax
jmp 0x4d8136
mov ecx, dword [esp + 0x94]
cmp byte [ecx + 8], 5
jne 0x4d7e4c
xor ecx, ecx
cmp byte [ebp], cl
je 0x4d7e48
mov eax, ebp
lea esp, [esp]
cmp byte [eax], 0xd
jne 0x4d7e38
add eax, 1
mov dl, byte [eax]
mov byte [ecx + ebp], dl
add eax, 1
add ecx, 1
cmp byte [eax], 0
jne 0x4d7e30
mov byte [ecx + ebp], 0
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0x14], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 4], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 6], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 8], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0x16], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
add esp, 4
test ax, ax
mov word [esi + 0xc], ax
je 0x4d8142
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x4d7ec2
and dword [esi + 0x10], 0xffffbfff
jmp case.default.0x4d7d94
test eax, eax
jle case.default.0x4d7d94
or dword [esi + 0x10], 0x4000
jmp case.default.0x4d7d94
mov eax, dword [esp + 0xc]
cmp eax, 0xfffffffd
je 0x4d7fdf
cmp eax, 0xfffffffe
je 0x4d7fab
cmp eax, 0xffffffff
je 0x4d7f61
add eax, eax
add eax, eax
push eax
call sym.convertifd.exe_IpMalloc
add esp, 4
test eax, eax
mov dword [esi + 0x38], eax
je 0x4d8142
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esi + 0x34], ecx
lea ecx, [esp + 0x18]
push ecx
push str._d_x__d__d
push ebp
call fcn.00511af7
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add esp, 0x14
cmp dword [esp + 0x14], ecx
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x30]
setne cl
and edx, 0xfffffffc
mov dword [esi + 0x28], eax
mov dword [0x607fa0], 0
and ecx, 1
or ecx, edx
mov dword [esi + 0x30], ecx
jmp case.default.0x4d7d94
mov eax, dword [0x607fa0]
cmp eax, dword [esi + 0x34]
jge case.default.0x4d7d94
push ebp
lea edi, [eax*4]
call sym.convertifd.exe_IpAddAtom
mov ecx, dword [esi + 0x38]
mov word [ecx + edi + 2], ax
mov edx, dword [esi + 0x38]
lea eax, [edx + edi]
add esp, 4
cmp word [eax + 2], 0
je 0x4d8142
mov cx, word [eax + 2]
mov word [eax], cx
add dword [0x607fa0], 1
jmp case.default.0x4d7d94
mov eax, dword [0x607fa0]
cmp eax, dword [esi + 0x34]
jge case.default.0x4d7d94
push ebp
lea edi, [eax*4]
call sym.convertifd.exe_IpAddAtom
mov edx, dword [esi + 0x38]
mov word [edx + edi + 2], ax
mov eax, dword [esi + 0x38]
add esp, 4
cmp word [eax + edi + 2], 0
jmp 0x4d813c
mov eax, dword [0x607fa0]
cmp eax, dword [esi + 0x34]
jge case.default.0x4d7d94
push ebp
lea edi, [eax*4]
call sym.convertifd.exe_IpAddAtom
mov ecx, dword [esi + 0x38]
mov word [edi + ecx], ax
mov edx, dword [esi + 0x38]
add esp, 4
cmp word [edi + edx], 0
jne 0x4d7f9f
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
add esp, 4
pop edi
pop ebx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00511a80
add esp, 0x7c
ret
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
jne 0x4d8057
push ebp
call sym.convertifd.exe_IpAddAtom
add esp, 4
test ax, ax
mov word [esi + 0x18], ax
je 0x4d8142
or dword [esi + 0x10], 0x100000
jmp case.default.0x4d7d94
cmp edi, 0xfffffffe
jne 0x4d806b
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0x3c], ax
jmp 0x4d8136
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
xor ecx, ecx
shr eax, 0x1f
add eax, edx
cmp edi, 0x3e8
setge cl
xor edx, edx
mov dword [esp + 0x14], eax
mov ebx, 0xa
and ecx, 1
add ecx, ecx
cmp edi, 0x64
setge dl
and edx, 1
or ecx, edx
cdq
idiv ebx
mov eax, dword [esp + 0x14]
add ecx, ecx
lea eax, [eax + eax*4]
neg edx
sbb edx, edx
neg edx
and edx, 1
or ecx, edx
mov edx, dword [esi + 0x24]
add eax, eax
sub edi, eax
add ecx, ecx
neg edi
sbb edi, edi
neg edi
and edi, 1
or ecx, edi
and edx, 0xfffffff0
or ecx, edx
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x24], ecx
lea ecx, [esp + 0x18]
push ecx
push str._d_x__d
push ebp
call fcn.00511af7
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0x5850ac
push ebp
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.005173a0
add eax, 3
push 0x20
push eax
call fcn.00513950
add eax, 1
push eax
call sym.convertifd.exe_IpAddAtom
add esp, 0x24
mov word [esi + 0x1a], ax
jmp 0x4d8139
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0x48], ax
jmp 0x4d8136
push ebp
call sym.convertifd.exe_IpAddAtom
mov word [esi + 0x4a], ax
add esp, 4
test ax, ax
jne case.default.0x4d7d94
push 0xfffffffffffffff9
call sym.convertifd.exe_IpMessage
mov ecx, dword [esp + 0x88]
add esp, 4
pop edi
pop ebx
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00511a80
add esp, 0x7c
ret