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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x8c]
mov edx, 0x1fff
mov edx, esp
mov dword [edx + 4], 0xffffffff
mov dword [edx], 0x802098
mov dword [esp + 0x48], eax
call fcn.004a3ea0
sub esp, 8
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
mov ecx, eax
sub ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
cmp eax, 0xffffffff
jne 0x4da3b6
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x7c]
mov edx, esp
mov dword [edx + 4], eax
lea eax, [esp + 0x58]
mov dword [edx], eax
mov dword [edx + 8], 0xffffffff
call fcn.00411b60
sub esp, 0xc
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x11c]
and ecx, 0xc
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x44]
cmp eax, 8
jne 0x4da4cb
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov edi, esp
lea ebx, [esp + 0x78]
call fcn.004da7e0
lea ebx, [esp + 0x58]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], eax
call fcn.004da7f0
mov dword [edi + 4], edx
mov dword [edi], esi
mov ecx, dword [esp + 0x48]
call fcn.004411f0
sub esp, 0x18
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
add ecx, 0x3c
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x48]
call fcn.00441530
sub esp, 8
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x48]
call fcn.00441880
sub esp, 8
mov eax, dword [esp + 0x74]
add eax, 0x10
mov ecx, dword [esp + 0x74]
mov edx, esp
mov dword [edx + 8], eax
mov dword [edx + 4], ecx
call fcn.004da800
mov ecx, dword [esp + 0x48]
call fcn.00442960
sub esp, 0xc
jmp 0x4da718
jmp 0x4da4d0
call fcn.004da810
call fcn.004da820
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
cmp ecx, 0xa
setl bh
or bl, bh
test bl, 1
jne 0x4da50b
jmp 0x4da7bb
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x11c]
and ecx, 4
push edx
mov edx, 0x515e0fcf
xor edx, 0x515e0fcf
cmp ecx, edx
pop edx
setne dl
mov ecx, dword [0x80a094]
mov esi, dword [0x80a090]
mov edi, ecx
sub edi, 1
imul ecx, edi
and ecx, 1
cmp ecx, 0
sete dh
cmp esi, 0xa
setl bl
or dh, bl
test dh, 1
mov byte [esp + 0x3f], dl
jne 0x4da570
jmp 0x4da7bb
mov al, byte [esp + 0x3f]
test al, 1
jne 0x4da581
jmp 0x4da675
mov eax, dword [0x80a094]
mov ecx, dword [0x80a090]
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
cmp ecx, 0xa
setl bh
or bl, bh
test bl, 1
jne 0x4da5bd
jmp 0x4da7c0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov edi, dword [0x80a094]
mov ebx, dword [0x80a090]
mov dword [esp + 0x38], eax
mov eax, 0x447bdc
mov eax, edi
sub eax, 1
imul edi, eax
and edi, 1
cmp edi, 0
sete al
cmp ebx, 0xa
setl ah
or al, ah
test al, 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
jne 0x4da62b
jmp 0x4da7c0
mov eax, esp
lea ecx, [esp + 0x78]
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x58]
call fcn.004da830
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov edi, dword [esp + 0x34]
mov dword [eax], edi
mov ecx, dword [esp + 0x48]
call fcn.004a8420
sub esp, 0x18
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
jmp 0x4da6ce
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov edi, esp
lea ebx, [esp + 0x78]
mov dword [edi + 0x14], ebx
lea ebx, [esp + 0x58]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 8], ecx
mov dword [edi + 4], edx
call fcn.004da840
mov dword [edi + 0x18], 0x50
mov ecx, dword [esp + 0x48]
call fcn.004a87c0
sub esp, 0x1c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
sub ecx, 0xffffffc4
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x48]
call fcn.00441530
sub esp, 8
mov eax, dword [esp + 0x74]
mov ecx, esi
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx], 0
mov ecx, dword [esp + 0x48]
call fcn.00442960
sub esp, 0xc
jmp 0x4da718
mov eax, dword [0x80a094]
call fcn.004da850
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
cmp ecx, 0xa
setl bh
or bl, bh
test bl, 1
jne 0x4da753
jmp 0x4da7c5
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], eax
call fcn.004101e0
mov eax, dword [0x80a094]
mov ecx, dword [0x80a090]
mov edx, 0x447bb8
mov edx, eax
sub edx, 1
imul eax, edx
and eax, 1
cmp eax, 0
sete bl
cmp ecx, 0xa
setl bh
or bl, bh
test bl, 1
jne 0x4da7ad
jmp 0x4da7c5
mov eax, dword [esp + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
jmp 0x4da50b
jmp 0x4da5bd
mov dword [esp + 0x4c], 1
lea ecx, [esp + 0x58]
call fcn.004101e0
jmp 0x4da753