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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x70]
cmp eax, dword [ecx + 8]
jbe 0x4dafcb
sub esp, 0xf0
mov byte [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
lea eax, [esp + 0xe0]
mov dword [esp], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 4], eax
call fcn.004d9270
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
mov byte [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
lea ecx, [esp + 0xd0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 4], ecx
call fcn.004d9270
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x4da8e9
mov edx, dword [esp + 0xfc]
mov ebx, 1
jmp 0x4da8f5
mov edx, dword [esp + 0xfc]
test edx, edx
setne bl
mov dword [esp + 0x6c], eax
mov byte [esp + 0x2d], bl
test bl, bl
jne 0x4da90a
xor ebp, ebp
xor esi, esi
jmp 0x4da98c
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
lea eax, [esp + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0
call fcn.004d8f30
mov eax, dword [esp + 0xc]
mov byte [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea ebp, [esp + 0xb0]
mov esi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], ebp
mov byte [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov byte [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov ecx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
call fcn.004dcb50
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4daa78
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
jmp 0x4daa88
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
jmp 0x4daaaa
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [eax + 8]
cmp ebp, 1
jle 0x4dac29
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004da290
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dabc7
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
movzx ebp, byte [esp + 0x18]
xchg ebp, eax
mov byte [esp + 0x2f], al
xchg ebp, eax
mov esi, dword [esp + 0x64]
mov dword [esp], esi
mov edi, dword [esp + 0x60]
mov dword [esp + 4], edi
lea esi, [esp + 0xa0]
mov dword [esp + 8], esi
lea esi, [esp + 0x90]
mov dword [esp + 0xc], esi
lea esi, [esp + 0x80]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x70]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
xchg ebp, eax
mov byte [esp + 0x28], al
xchg ebp, eax
call fcn.004da440
movzx eax, byte [esp + 0x2d]
test al, al
je 0x4daa9a
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
lea ebx, [esp + 0x90]
mov dword [esp + 0xc], ebx
lea ebp, [esp + 0x80]
mov dword [esp + 0x10], ebp
lea esi, [esp + 0x70]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], edi
movzx edi, byte [esp + 0x2f]
xchg edi, eax
mov byte [esp + 0x28], al
xchg edi, eax
call fcn.004da440
movzx eax, byte [esp + 0x2d]
jmp 0x4daa9a
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
lea ebp, [esp + 0xa0]
mov dword [esp + 0x10], ebp
lea esi, [esp + 0x90]
mov dword [esp + 0x14], esi
lea edi, [esp + 0x80]
mov dword [esp + 0x18], edi
lea edi, [esp + 0x70]
mov dword [esp + 0x1c], edi
movzx edi, byte [esp + 0x2d]
xchg edi, eax
mov byte [esp + 0x20], al
xchg edi, eax
call fcn.004da680
movzx eax, byte [esp + 0x2d]
jmp 0x4daa9a
test ebp, ebp
je 0x4dacdc
cmp dword [ebx + 8], 1
jle 0x4dac8f
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xa0]
mov dword [esp + 0x10], ebp
lea ebp, [esp + 0x90]
mov dword [esp + 0x14], ebp
lea ebp, [esp + 0x80]
mov dword [esp + 0x18], ebp
lea esi, [esp + 0x70]
mov dword [esp + 0x1c], esi
movzx edi, byte [esp + 0x2d]
xchg edi, eax
mov byte [esp + 0x20], al
xchg edi, eax
call fcn.004da680
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x4dacdc
mov ebp, dword [eax + 4]
mov esi, dword [ebx + 4]
mov esi, dword [esi]
mov ebp, dword [ebp]
movzx edi, byte [esp + 0x2d]
xchg edi, eax
test al, al
xchg edi, eax
je 0x4dae45
xor edi, edi
mov edi, 1
mov dword [esp + 0x30], edi
mov edi, 1
mov dword [esp + 0x3c], edi
xor edi, edi
mov dword [esp + 0x54], edi
mov edi, 1
xchg edi, eax
mov byte [esp + 0x2e], al
xchg edi, eax
xor edi, edi
jmp 0x4daebd
mov ecx, dword [esp + 0x100]
movzx ebp, byte [ecx]
mov esi, dword [esp + 0xfc]
test esi, esi
je 0x4dada4
xchg ebp, eax
mov byte [esp + 0x2c], al
xchg ebp, eax
mov edi, dword [esp + 0x104]
cmp edi, esi
jne 0x4dad28
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004d9190
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0xfc]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x60], edi
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004d97a0
movzx eax, byte [esp + 0x2c]
test al, al
je 0x4dad56
mov ecx, dword [esp + 0xfc]
movzx edx, byte [ecx]
xor edx, 1
mov byte [ecx], dl
jmp 0x4dad5d
mov ecx, dword [esp + 0xfc]
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004d9550
mov eax, dword [esp + 0xfc]
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
call fcn.004d9a40
mov eax, dword [esp + 0xf8]
test eax, eax
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
movzx ebp, byte [esp + 0x2c]
jmp 0x4dadad
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x4dadef
mov ecx, dword [edx + 8]
mov esi, dword [edx + 0xc]
movzx edi, byte [edx]
mov edx, dword [edx + 4]
xchg edi, ebx
mov byte [eax], bl
xchg edi, ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov ecx, dword [0x8c88d8]
test ecx, ecx
je 0x4dadde
call fcn.004772f0
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov dword [eax + 4], edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4dadef
movzx ecx, byte [eax]
xor ecx, 1
mov byte [eax], cl
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
movzx edx, byte [ebx]
mov ebx, dword [ebx + 4]
mov ebp, dword [esp + 0xf4]
mov byte [ebp], dl
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov eax, dword [0x8c88d8]
test eax, eax
je 0x4dae22
call fcn.004772f0
mov dword [edi], ebx
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov dword [ebp + 4], ebx
mov dword [esp + 0x108], ebp
add esp, 0xf0
ret
mov ecx, eax
mov eax, esi
xor edx, edx
div ebp
mov eax, ecx
mov esi, ebp
mov ebp, edx
mov edx, dword [esp + 0x5c]
test ebp, ebp
jne 0x4dae33
mov ecx, dword [ebx + 4]
mov dword [ecx], esi
jmp 0x4dacdc
mov eax, esi
xor edx, edx
div ebp
mov edx, edi
imul edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
imul eax, edx
mov dword [esp + 0x4c], eax
mov eax, esi
mov esi, edx
xor edx, edx
div ebp
mov eax, edx
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
add edx, ebx
mov ebx, edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
add edx, ecx
mov ecx, edx
movzx edx, byte [esp + 0x2e]
xor edx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], esi
mov byte [esp + 0x2e], dl
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov edi, ebx
mov esi, ebp
mov ebx, dword [esp + 0x64]
mov ebp, eax
mov eax, dword [esp + 0x60]
test ebp, ebp
jne 0x4dae53
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call fcn.004dc510
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
call fcn.004dc510
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x84], eax
movzx eax, byte [esp + 0x2e]
mov ecx, eax
xor eax, 1
mov byte [esp + 0x70], al
mov byte [esp + 0x80], cl
lea eax, [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d97a0
lea eax, [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d97a0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 8], ecx
call fcn.004d9300
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x48]
jmp 0x4dae49
call fcn.00475ee0
jmp fcn.004da820