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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x9dc]
test eax, eax
push esi
push edi
mov dword [esp + 0x18], ebx
jne 0x4da334
mov eax, dword [ebx + 0x24]
push 0x690b38
push eax
lea ecx, [esp + 0x64]
call fcn.005c6d67
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor esi, esi
cmp eax, 5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0xc], esi
je 0x4d9bd0
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x164]
call fcn.0048aac0
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x4d9bd0
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x78], 9
jne 0x4d9bca
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x128]
test ch, 4
jne case.default.0x4d9c02
mov dword [esp + 0x14], esi
jmp 0x4d9bda
mov ecx, dword [ebx + 0x244]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x4d9bf5
mov ecx, eax
call fcn.004a60b0
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
dec eax
cmp eax, 4
ja case.default.0x4d9c02
jmp dword [eax*4 + 0x4da380]
call dword [0x68a5c8]
mov esi, eax
mov eax, dword [ebx + 0x910]
and esi, 0x7fffffff
test eax, eax
je 0x4d9c49
mov eax, dword [ebx + 0x90c]
test eax, eax
je 0x4d9c49
call dword [0x68a548]
sub esi, dword [ebx + 0x910]
cmp esi, eax
jle 0x4d9c49
xor eax, eax
mov dword [ebx + 0x910], eax
mov dword [ebx + 0x90c], eax
cmp dword [ebp + 8], 1
jne 0x4d9c8c
test edi, edi
je 0x4d9c82
fild dword [ebp + 0x10]
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18d0]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.0055dad0
mov dword [ebx + 0x910], 0
mov ecx, dword [ebx + 0x904]
test ecx, ecx
mov dword [esp + 0x14], 0
je 0x4d9ca7
call fcn.004a60b0
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x20]
xor eax, eax
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
call fcn.0056ff60
xor esi, esi
cmp edi, esi
je 0x4d9cd8
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.0055c690
mov eax, dword [ebx + 0x20]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], eax
call fcn.0056ff60
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x4d9d21
mov ecx, edi
call fcn.0055b540
test al, al
je 0x4d9d21
mov ecx, dword [ebx + 0x914]
call fcn.004d8040
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.0055c690
jmp 0x4d9d79
mov eax, dword [ebx + 0x914]
mov edi, dword [eax + 4]
test edi, edi
je 0x4d9d75
mov ebx, dword [eax]
xor esi, esi
test edi, edi
jle 0x4d9d48
mov edx, dword [ebx + esi*4]
push edx
lea ecx, [esp + 0x40]
call fcn.00588e00
inc esi
cmp esi, edi
jl 0x4d9d36
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x914]
mov ecx, dword [edx + 4]
mov edi, dword [edx]
mov ebx, dword [esp + 0x18]
shl ecx, 2
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov dword [edx + 4], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4d9e37
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4d9e31
test edx, edx
je 0x4d9e4c
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov esi, dword [esi + ecx*4 - 4]
mov eax, dword [eax + edx*4 - 4]
mov esi, dword [esi + 4]
cmp esi, dword [eax + 4]
jne 0x4d9e4c
test ecx, ecx
je 0x4d9dee
lea eax, [ecx - 1]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
inc eax
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.0055b240
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x50], eax
mov dword [ecx + eax*4], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4d9e27
mov ecx, dword [esp + 0x3c]
lea eax, [edx - 1]
sub edx, eax
dec edx
push edx
push eax
push ecx
inc eax
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0055b240
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x40], eax
mov dword [edx + eax*4], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
test ecx, ecx
jne 0x4d9d91
jmp 0x4d9e4c
lea ecx, [esp + 0x4c]
jmp 0x4d9e43
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d9e4c
lea ecx, [esp + 0x3c]
call fcn.004d8070
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4da0ad
mov eax, dword [ebx + 0x904]
test eax, eax
je 0x4da00f
cmp edx, eax
je 0x4da161
test edi, edi
je 0x4d9f3f
fild dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [edx + 0x18d4]
push 0
fstp qword [esp + 0x2c]
call fcn.004a60b0
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push esi
call fcn.0055dad0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jle 0x4d9f3b
jmp 0x4d9ee0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4d9f32
call fcn.004a60b0
mov esi, eax
test esi, esi
je 0x4d9f32
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [eax + 0x1910]
push 0
call fcn.004a60b0
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push edi
call fcn.0055dad0
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4d9ee0
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4d9ffc
mov ebx, dword [esp + 0x4c]
lea edi, [ecx - 1]
test edi, edi
jl 0x4d9fb7
mov ecx, dword [ebx + edi*4]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4d9fb0
call fcn.004a60b0
mov esi, eax
test esi, esi
je 0x4d9fb0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x904]
test ecx, ecx
je 0x4d9f80
call fcn.004a60b0
jmp 0x4d9f82
xor eax, eax
fild dword [ebp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1914]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push eax
call fcn.0055dad0
dec edi
jns 0x4d9f56
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x904]
test ecx, ecx
je 0x4d9fcc
call fcn.004a60b0
jmp 0x4d9fce
xor eax, eax
fild dword [ebp + 0x10]
mov edx, dword [esi + 0x10]
push 0
push eax
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18d8]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.0055dad0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x904], eax
jmp 0x4da161
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ebx + 0x904], edx
je 0x4da161
mov edi, dword [esp + 0x4c]
xor esi, esi
test ecx, ecx
mov ebx, ecx
jle 0x4da077
lea ecx, [ecx]
mov edx, dword [edi + esi*4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4da072
call fcn.004a60b0
test eax, eax
je 0x4da072
fild dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 0x1914]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push edx
call fcn.0055dad0
inc esi
cmp esi, ebx
jl 0x4da030
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x18d8]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.0055dad0
jmp 0x4da161
mov eax, dword [ebx + 0x904]
test eax, eax
je 0x4da161
test edi, edi
je 0x4da157
fild dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18d4]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 0x40]
mov ecx, edi
fld qword [esp + 0x38]
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push eax
call fcn.0055dad0
mov esi, dword [esp + 0x40]
dec esi
mov edi, dword [esp + 0x3c]
js 0x4da157
lea ecx, [ecx]
mov ecx, dword [edi + esi*4]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4da154
call fcn.004a60b0
test eax, eax
je 0x4da154
fld qword [esp + 0x20]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x1910]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, eax
call fcn.0055dad0
dec esi
jns 0x4da110
mov dword [ebx + 0x904], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4da175
mov edx, dword [esp + 0x3c]
push edx
call fcn.006041e0
jmp 0x4da182
mov eax, dword [esp + 0x3c]
push eax
call fcn.006058d0
add esp, 4
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov dword [esp + 0x3c], 0
je 0x4da1ae
mov edx, dword [esp + 0x4c]
push edx
call fcn.006041e0
lea ecx, [esp + 0x5c]
call fcn.005c6dae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x4c]
push eax
call fcn.006058d0
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.005c6dae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x908], ecx
je case.default.0x4d9c02
fild dword [ebp + 0x10]
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18c4]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.0055dad0
lea ecx, [esp + 0x5c]
call fcn.005c6dae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x4da253
fild dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18dc]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push eax
call fcn.0055dad0
test esi, esi
mov ecx, dword [esp + 0xc]
mov edi, ecx
jne 0x4da263
mov edi, dword [ebx + 0x244]
xor esi, esi
cmp edi, esi
je 0x4da315
cmp edi, dword [ebx + 0x908]
je 0x4da294
cmp ecx, esi
je 0x4da315
cmp ecx, dword [esp + 0x14]
jne 0x4da315
call fcn.004a7450
test eax, eax
je 0x4da315
call dword [0x68a5c8]
mov esi, eax
mov eax, dword [ebx + 0x90c]
and esi, 0x7fffffff
cmp edi, eax
jne 0x4da33d
call dword [0x68a548]
mov edx, dword [ebx + 0x910]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jge 0x4da343
mov ecx, edi
call fcn.004a60b0
test eax, eax
je 0x4da343
mov ecx, edi
call fcn.004a60b0
mov edx, dword [eax + 0x48]
shr edx, 6
test dl, 1
je 0x4da343
mov ecx, dword [esp + 0x10]
xor esi, esi
cmp ecx, esi
je 0x4da315
fild dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x1888]
push esi
push esi
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push esi
push 1
push edx
call fcn.0055dad0
mov dword [ebx + 0x910], esi
mov dword [ebx + 0x90c], esi
mov dword [ebx + 0x908], 0
lea ecx, [esp + 0x5c]
call fcn.005c6dae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x90c], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [ebx + 0x910], esi
je 0x4da321
fild dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x1870]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.0055dad0
jmp 0x4da321