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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x69eeec
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
xor ebp, ebp
cmp eax, ebp
jne 0x4d573f
xor eax, eax
jmp 0x4d619a
mov ecx, dword [esi + 0x20a4]
cmp ecx, ebp
push edi
je 0x4d57b1
call fcn.00425c90
mov edi, eax
cmp edi, ebp
je 0x4d57a7
mov ecx, dword [esi + 0x20a4]
cmp ecx, ebp
je 0x4d576b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20a4], ebp
cmp edi, ebp
jle 0x4d57a7
push 1
mov ecx, esi
call fcn.004d53f0
mov cl, byte [esi + 0x1ed8]
mov dl, byte [esi + 0x1ed9]
mov byte [esi + 0x1eb0], cl
mov ecx, esi
mov dword [esi + 0x1eb4], 1
mov byte [esi + 0x1eb1], dl
mov dword [esi + 0x1ec0], edi
call fcn.004a40d0
mov eax, 1
jmp 0x4d6199
mov eax, dword [esi + 0x1e98]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x10], edi
je 0x4d5801
cmp eax, 1
je 0x4d5801
cmp eax, 2
je 0x4d5801
mov eax, dword [esp + 0x1a0]
cmp eax, ebp
je 0x4d5801
cmp dword [eax + 0xd8], ebp
mov edi, eax
mov dword [esp + 0x10], edi
je 0x4d57e8
xor ecx, ecx
jmp 0x4d57ef
movzx ecx, byte [eax + 0xdd]
mov byte [esi + 0x1eee], cl
mov al, byte [eax + 0xdc]
mov byte [esi + 0x1eef], al
mov ecx, dword [esi + 0x1e94]
cmp ecx, ebp
je 0x4d5834
call fcn.00512f30
test eax, eax
je 0x4d582a
mov ecx, dword [esi + 0x1e94]
cmp ecx, ebp
je 0x4d582a
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x1e94], ebp
mov eax, 1
jmp 0x4d6199
mov al, byte [esi + 0x1e9c]
cmp al, 0xff
mov dl, byte [0x21ecb4d]
mov cl, byte [0x21ecb4c]
push ebx
je 0x4d589b
test cl, cl
je 0x4d589b
cmp al, dl
jne 0x4d5861
mov bl, byte [esi + 0x1e9d]
cmp bl, byte [0x21ecb4e]
je 0x4d5877
cmp al, byte [0x21ecb4f]
jne 0x4d589b
mov al, byte [esi + 0x1e9d]
cmp al, byte [0x21ecb50]
jne 0x4d589b
push ebp
mov ecx, esi
call fcn.004d53f0
cmp edi, ebp
je 0x4d588a
mov byte [edi + 0xdc], 0xff
mov byte [esi + 0x1eef], 0xff
mov eax, 1
jmp 0x4d6198
mov al, byte [esi + 0x1eb0]
cmp al, 0xff
je 0x4d58d5
test cl, cl
je 0x4d58d5
cmp al, dl
jne 0x4d58bb
mov bl, byte [0x21ecb4e]
cmp byte [esi + 0x1eb1], bl
je 0x4d58d1
cmp al, byte [0x21ecb4f]
jne 0x4d58d5
mov al, byte [esi + 0x1eb1]
cmp al, byte [0x21ecb50]
jne 0x4d58d5
push 1
jmp 0x4d5878
mov al, byte [esi + 0x1ec4]
cmp al, 0xff
je 0x4d5912
test cl, cl
je 0x4d5912
cmp al, dl
jne 0x4d58f5
mov cl, byte [0x21ecb4e]
cmp byte [esi + 0x1ec5], cl
je 0x4d590b
cmp al, byte [0x21ecb4f]
jne 0x4d5912
mov dl, byte [0x21ecb50]
cmp byte [esi + 0x1ec5], dl
jne 0x4d5912
push 2
jmp 0x4d5878
or ebx, 0xffffffff
mov byte [0x21ecb4c], 0
xor edi, edi
lea ebp, [esi + 0x48]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, ebp
call fcn.005116a0
test eax, eax
je 0x4d5936
mov ebx, edi
inc edi
add ebp, 0x4d4
cmp edi, 2
jl 0x4d5921
mov eax, ebx
sub eax, 0
je 0x4d6193
dec eax
je 0x4d5fe0
mov eax, dword [0x21ee228]
cmp eax, 1
jne 0x4d5a4b
mov eax, dword [0x21ee22c]
test eax, eax
jne 0x4d5f2e
mov eax, dword [esi + 0x1ea4]
mov edx, dword [esi + 4]
mov dword [esi + 0x1e98], 0xffffffff
mov edi, dword [0x708798]
lea ecx, [eax + edx]
mov eax, dword [0x708794]
cmp eax, ecx
jl 0x4d59c5
add ecx, 0x20
cmp eax, ecx
jg 0x4d59c5
mov ecx, dword [esi + 0x1ea8]
mov ebx, dword [esi + 8]
add ecx, ebx
cmp edi, ecx
jl 0x4d59c5
add ecx, 0x20
cmp edi, ecx
jg 0x4d59c5
mov dword [esi + 0x1e98], 0
mov eax, 1
jmp 0x4d6198
mov ecx, dword [esi + 0x1eb8]
add ecx, edx
cmp eax, ecx
jl 0x4d59fe
add ecx, 0x20
cmp eax, ecx
jg 0x4d59fe
mov ecx, dword [esi + 0x1ebc]
mov ebx, dword [esi + 8]
add ecx, ebx
cmp edi, ecx
jl 0x4d59fe
add ecx, 0x20
cmp edi, ecx
jg 0x4d59fe
mov eax, 1
mov dword [esi + 0x1e98], eax
jmp 0x4d6198
mov ecx, dword [esi + 0x1ecc]
add ecx, edx
cmp eax, ecx
jl 0x4d5f2e
add ecx, 0x20
cmp eax, ecx
jg 0x4d5f2e
mov edx, dword [esi + 0x1ed0]
mov eax, dword [esi + 8]
add eax, edx
cmp edi, eax
jl 0x4d5f2e
add eax, 0x20
cmp edi, eax
jg 0x4d5f2e
mov dword [esi + 0x1e98], 2
mov eax, 1
jmp 0x4d6198
cmp eax, 2
jne 0x4d5f2e
mov eax, dword [esi + 0x1e98]
sub eax, 0
je 0x4d5edf
dec eax
je 0x4d5e9d
dec eax
je 0x4d5e53
mov bl, byte [esi + 0x1eef]
cmp bl, 0xff
je 0x4d5f1d
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x1ea4]
mov eax, dword [0x708794]
add ecx, edx
lea edi, [ecx - 8]
cmp eax, edi
mov edi, dword [0x708798]
jl 0x4d5c3f
add ecx, 0x2d
cmp eax, ecx
jg 0x4d5c3f
mov ebp, dword [esi + 8]
mov ecx, dword [esi + 0x1ea8]
add ecx, ebp
lea ebp, [ecx - 8]
cmp edi, ebp
jl 0x4d5c3f
add ecx, 0x2d
cmp edi, ecx
jg 0x4d5c3f
xor edx, edx
mov dl, byte [esi + 0x1eee]
push ebx
mov ecx, esi
push edx
push 0
call fcn.004d5480
test al, al
je 0x4d5f5a
push 0
mov ecx, esi
call fcn.004d53f0
mov al, byte [esi + 0x1eee]
mov cl, byte [esi + 0x1eef]
mov byte [esi + 0x1e9c], al
movzx eax, al
mov byte [esi + 0x1e9d], cl
movzx ecx, cl
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
imul eax, eax, 0x22
mov dword [esi + 0x1ea0], 1
movzx ecx, byte [eax + 0x852b31]
movzx eax, byte [eax + 0x852b32]
push eax
push ecx
mov ecx, 0x859304
call fcn.0045f410
test eax, eax
mov byte [esi + 0x1eec], 0
mov byte [esi + 0x1eed], 0
je 0x4d5c33
movzx eax, word [eax + 0x20]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edx
push 0x6a9858
push ecx
mov dword [esp + 0x58], edx
call fcn.005baa1d
lea eax, [esp + 0x3c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d5b92
sub eax, edx
cmp eax, 5
jne 0x4d5c33
mov ax, word [esp + 0x30]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x8c], edx
mov dx, word [esp + 0x32]
mov word [esp + 0x70], ax
mov al, byte [esp + 0x34]
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x54], dx
mov byte [esp + 0x56], al
call fcn.005ba8fa
lea edx, [esp + 0x54]
push edx
mov byte [esi + 0x1eec], al
call fcn.005ba8fa
add esp, 8
mov byte [esi + 0x1eed], al
mov ecx, esi
call fcn.004a40d0
jmp 0x4d5f5a
mov ecx, dword [esi + 0x1eb8]
add ecx, edx
lea ebp, [ecx - 8]
cmp eax, ebp
jl 0x4d5d88
add ecx, 0x2d
cmp eax, ecx
jg 0x4d5d88
mov ebp, dword [esi + 8]
mov ecx, dword [esi + 0x1ebc]
add ecx, ebp
lea ebp, [ecx - 8]
cmp edi, ebp
jl 0x4d5d88
add ecx, 0x2d
cmp edi, ecx
jg 0x4d5d88
mov eax, dword [esi + 0x1ea0]
test eax, eax
mov dl, byte [esi + 0x1eee]
je 0x4d5f5a
movzx eax, dl
movzx ecx, bl
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
imul eax, eax, 0x22
mov cl, byte [eax + 0x852b31]
cmp byte [esi + 0x1eec], cl
mov al, byte [eax + 0x852b32]
jne 0x4d5f5a
cmp byte [esi + 0x1eed], al
jne 0x4d5f5a
movzx eax, dl
lea edx, [eax + eax*2]
movzx eax, bl
lea ecx, [eax + edx*8]
imul ecx, ecx, 0x22
mov bl, byte [ecx + 0x852b33]
cmp bl, 1
jbe 0x4d5d4b
mov ecx, dword [esi + 0x20a4]
test ecx, ecx
je 0x4d5cf9
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x20a4], 0
push 0x1860
call fcn.005b9e72
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x19c], 1
je 0x4d5d26
movzx ecx, bl
push ecx
mov ecx, eax
call fcn.00426040
jmp 0x4d5d28
xor eax, eax
mov dl, byte [esi + 0x1eee]
mov dword [esi + 0x20a4], eax
mov al, byte [esi + 0x1eef]
mov byte [esi + 0x1ed8], dl
mov byte [esi + 0x1ed9], al
jmp 0x4d5f5a
mov edi, 1
push edi
mov ecx, esi
call fcn.004d53f0
mov cl, byte [esi + 0x1eee]
mov dl, byte [esi + 0x1eef]
mov byte [esi + 0x1eb0], cl
mov ecx, esi
mov dword [esi + 0x1eb4], edi
mov byte [esi + 0x1eb1], dl
mov dword [esi + 0x1ec0], edi
call fcn.004a40d0
jmp 0x4d5f5a
mov ecx, dword [esi + 0x1ecc]
add ecx, edx
lea edx, [ecx - 8]
cmp eax, edx
jl 0x4d5f1d
add ecx, 0x2d
cmp eax, ecx
jg 0x4d5f1d
mov eax, dword [esi + 0x1ed0]
mov ecx, dword [esi + 8]
add eax, ecx
lea edx, [eax - 8]
cmp edi, edx
jl 0x4d5f1d
add eax, 0x2d
cmp edi, eax
jg 0x4d5f1d
mov al, byte [esi + 0x1eee]
mov byte [esp + 0x18], al
mov cl, bl
movzx eax, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
imul edx, edx, 0x22
cmp byte [edx + 0x852b31], 0x5f
jne 0x4d5f5a
mov eax, dword [esi + 0x1ea0]
test eax, eax
je 0x4d5f5a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004d5190
test al, al
je 0x4d5f5a
push 2
mov ecx, esi
call fcn.004d53f0
mov dl, byte [esi + 0x1eee]
mov al, byte [esi + 0x1eef]
mov ecx, esi
mov dword [esi + 0x1ec8], 1
mov byte [esi + 0x1ec4], dl
mov byte [esi + 0x1ec5], al
call fcn.004a40d0
jmp 0x4d5f5a
mov ecx, dword [esi + 0x1ecc]
mov edx, dword [esi + 4]
lea eax, [ecx + edx]
mov ecx, dword [0x708794]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5e96
add eax, 0x2d
cmp ecx, eax
jg 0x4d5e96
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1ed0]
add eax, ecx
mov ecx, dword [0x708798]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5e96
add eax, 0x2d
cmp ecx, eax
jle 0x4d5f1d
push 2
jmp 0x4d5f53
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1eb8]
add eax, ecx
mov ecx, dword [0x708794]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5edb
add eax, 0x2d
cmp ecx, eax
jg 0x4d5edb
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1ebc]
add eax, ecx
mov ecx, dword [0x708798]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5edb
add eax, 0x2d
cmp ecx, eax
jle 0x4d5f1d
push 1
jmp 0x4d5f53
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1ea4]
add eax, ecx
mov ecx, dword [0x708794]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5f51
add eax, 0x2d
cmp ecx, eax
jg 0x4d5f51
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x1ea8]
add eax, ecx
mov ecx, dword [0x708798]
lea edx, [eax - 8]
cmp ecx, edx
jl 0x4d5f51
add eax, 0x2d
cmp ecx, eax
jg 0x4d5f51
mov byte [esi + 0x1eef], 0xff
mov dword [esi + 0x1e98], 0xffffffff
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
lea ebx, [esi + 0x9f0]
push ecx
mov ecx, ebx
call fcn.005116a0
test eax, eax
je 0x4d5f7e
mov eax, 4
jmp 0x4d6198
push 0
mov ecx, esi
call fcn.004d53f0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d588a
mov byte [eax + 0xdc], 0xff
mov byte [esi + 0x1eef], 0xff
mov eax, 1
jmp 0x4d6198
push 1
lea ecx, [esi + 0xf34]
call fcn.00515060
test eax, eax
jne 0x4d5891
xor edi, edi
lea ebp, [esi + 0x48]
jmp 0x4d5fa0
push 1
mov ecx, ebp
call fcn.00511430
test eax, eax
jne 0x4d5891
inc edi
add ebp, 0x4d4
cmp edi, 2
jl 0x4d5fa0
push 1
mov ecx, ebx
call fcn.00511430
test eax, eax
jne 0x4d5891
mov ecx, esi
call fcn.00511160
neg eax
sbb eax, eax
neg eax
jmp 0x4d6198
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004d5380
xor ecx, ecx
mov cl, byte [esi + 0x1ec5]
xor edx, edx
mov dl, byte [esi + 0x1ec4]
lea eax, [esp + 0x13]
push eax
mov byte [esp + 0x17], 0
push ecx
mov ecx, esi
push edx
call fcn.004d5190
cmp dword [0x6f3558], 3
mov bl, byte [esp + 0x13]
jne 0x4d6030
mov al, bl
neg al
sbb eax, eax
and eax, 0xaae60
add eax, 0x927c0
mov edi, eax
jmp 0x4d6034
mov edi, dword [esp + 0x18]
cmp edi, dword [0x851aa8]
jbe 0x4d60f7
push 0x154
call fcn.005b9e72
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x19c], 0
je 0x4d6069
mov ecx, eax
call fcn.005134d0
jmp 0x4d606b
xor eax, eax
push 0x16
mov ecx, eax
mov dword [esp + 0x1a0], 0xffffffff
mov dword [esi + 0x1e94], eax
call fcn.005138c0
lea ecx, [esp + 0x90]
push ecx
push edi
mov ecx, 0x851aa0
call fcn.004c1030
mov ecx, dword [esi + 0x1e94]
push 0
call fcn.00512d00
mov ecx, eax
call fcn.00517490
lea edx, [esp + 0x90]
push edx
push 0x7068b8
call fcn.0041b710
add esp, 8
test bl, bl
je 0x4d60f0
push 0x2776
call fcn.0041b840
mov ecx, dword [esi + 0x1e94]
add esp, 4
push eax
push 0
call fcn.00512d00
push eax
call fcn.00518180
add esp, 8
xor eax, eax
jmp 0x4d6198
push 0x2777
jmp 0x4d60ca
mov al, byte [esi + 0x1ec4]
mov cl, byte [esi + 0x1ec5]
mov dl, byte [esi + 0x1eb0]
mov byte [esp + 0x20], al
mov al, byte [esi + 0x1eb1]
mov byte [esp + 0x28], cl
mov cl, byte [esi + 0x1ec0]
mov byte [esp + 0x24], dl
mov dl, byte [esi + 0x1e9c]
mov byte [esp + 0x2c], al
mov al, byte [esi + 0x1e9d]
mov byte [esp + 0x14], cl
mov ecx, esi
mov byte [esp + 0x1c], dl
mov byte [esp + 0x18], al
call fcn.004d5590
test al, al
je 0x4d618f
mov eax, dword [0x21e9fe0]
test eax, eax
je 0x4d617d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
call fcn.00589ed0
add esp, 0x20
push 1
mov ecx, esi
call fcn.004d53f0
push 2
mov ecx, esi
call fcn.004d53f0
xor eax, eax
jmp 0x4d6198
mov eax, 2
pop ebx
pop edi
mov ecx, dword [esp + 0x18c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x190
ret 4