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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4da51b
sub esp, 0x40
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x49]
cmp cl, 0xff
je 0x4da4ff
mov byte [esp + 0x23], cl
test cl, 4
je 0x4da17f
mov edx, dword [esp + 0x5c]
test edx, edx
jne 0x4da4e3
lea eax, [0x61eda0]
mov dword [esp], eax
call fcn.004636a0
mov eax, dword [esp + 8]
lea ecx, [0x523980]
cmp dword [esp + 4], ecx
jne 0x4da4cc
test byte [eax], al
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4da48d
nop
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x38], edx
mov ebx, dword [esp + 0x50]
mov dword [eax + 0x3c], ebx
mov ebx, dword [0x63be10]
test ebx, ebx
jne 0x4da47a
mov dword [eax + 0x34], ecx
lea ecx, [eax + 0x34]
lea ebx, [0x569b0c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ecx
mov ebp, dword [esp + 0x44]
mov esi, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov esi, dword [esp + 0x60]
mov dword [esp + 0xc], esi
call fcn.004d92f0
movzx eax, byte [esp + 0x23]
test al, 4
je 0x4da343
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
test ecx, ecx
jle 0x4da33a
mov ecx, dword [esp + 0x5c]
mov dword [edx], ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
call fcn.004d9540
movzx eax, byte [esp + 0x18]
test al, al
je 0x4da312
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x68]
lea ebx, [ecx + edx]
mov dword [esp + 0x30], ebx
mov ebp, dword [eax + 0x10]
mov esi, dword [esp + 0x6c]
cmp esi, ebx
jb 0x4da2cf
mov edi, dword [esp + 0x64]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x64], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0045aff0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004d9220
mov eax, dword [esp + 0x64]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
add esp, 0x40
ret
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ebp
lea eax, [0x51aae0]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004427c0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x3c]
jmp 0x4da289
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004d9220
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov ecx, dword [esp + 0x5c]
jmp 0x4da22d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
mov edi, 0xffffffff
jmp 0x4da399
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
call ecx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
lea esi, [eax + edi]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
cmp ebp, esi
jl 0x4da456
test edi, edi
je 0x4da456
mov edi, dword [ecx + 0x28]
test edi, edi
jg 0x4da3f5
mov edi, dword [eax + 8]
mov ebp, dword [eax + 4]
test edi, edi
jle 0x4da3bd
mov dword [ebp], esi
mov dword [esp + 0x5c], esi
mov ebp, dword [ecx + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004d9540
movzx eax, byte [esp + 0x18]
test al, al
je 0x4da362
jmp 0x4da268
mov dword [esp + 0x30], esi
mov eax, dword [ebx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call eax
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x4da42e
mov edi, dword [esp + 0x30]
lea esi, [eax + edi]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
jmp 0x4da3b0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004d9220
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov dword [esp], eax
call fcn.004d9220
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
lea edi, [eax + 0x34]
mov ebx, eax
mov eax, ecx
call fcn.0045a680
mov eax, ebx
jmp 0x4da1cf
nop
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x44], ecx
mov edx, dword [0x63be10]
test edx, edx
jne 0x4da4ba
mov edx, dword [esp + 0x54]
mov dword [eax + 0x40], edx
lea ebp, [eax + 0x40]
lea ebx, [0x569b54]
mov ecx, ebp
mov edx, dword [esp + 0x58]
jmp 0x4da1d8
lea edi, [eax + 0x40]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045a680
mov eax, edx
jmp 0x4da4a6
lea eax, [0x529460]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
jmp 0x4da1a1
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
call fcn.00459120
jmp fcn.004da140