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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, ecx
push edi
test byte [esi + 8], 2
jne 0x4d2416
mov edx, dword [esi + 0x40]
mov edi, dword [esi + 0x8c]
mov eax, edx
mov ecx, edi
sar eax, cl
mov ebp, dword [esi + 0x90]
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], eax
inc eax
mov dword [esp + 0x54], eax
shl eax, cl
mov ecx, ebp
sub eax, edx
mov edx, dword [esi + 0x44]
mov ebx, edx
mov dword [esp + 0x44], eax
sar ebx, cl
lea eax, [ebx + 1]
mov dword [esp + 0xa0], eax
shl eax, cl
mov ecx, edi
sub eax, edx
mov edx, dword [esi + 0x48]
mov dword [esp + 0x28], eax
mov eax, edx
sar eax, cl
mov ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edi, eax
shl edi, cl
mov ecx, ebp
sub edx, edi
mov edi, dword [esi + 0x4c]
inc edx
mov dword [esp + 0x4c], edx
mov edx, edi
sar edx, cl
mov ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov ebp, edx
sub edx, ebx
shl ebp, cl
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x68], ecx
sub edi, ebp
mov ebp, dword [esp + 0x44]
inc edi
mov dword [esp + 0x48], edi
mov edi, dword [esi + 0x38]
mov dword [esp + 0x74], edi
sub edi, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], edi
xor edi, edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0xa8]
mov ebp, dword [edi + 0x2c]
mov edi, dword [esp + 0x50]
sub eax, edi
mov edi, dword [esi + 0x54]
dec eax
dec edx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov eax, ecx
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
mov edx, dword [edx + ebx*4]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esi + 0x50]
add ecx, eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], edx
mov eax, dword [eax + ecx*4]
cmp eax, 0xeeeeeeee
jne 0x4d1cf3
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
sub edx, ecx
lea ecx, [esi + 0xf4]
add edx, ebx
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
sub eax, edx
push 0x1000400
push 0
lea edx, [esp + 0x24]
add eax, edi
push 0
push edx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
call fcn.004ba740
jmp 0x4d1d35
cmp eax, 0xffffffff
je 0x4d1d35
mov edx, dword [esi + 0xa0]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d1d1d
cmp eax, dword [ecx + 0x68]
jg 0x4d1d1d
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x4d1d1f
xor eax, eax
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x30]
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov eax, dword [esi + 0x28]
add ebx, ecx
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x4d1d50
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x4d1e28
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
lea ecx, [edx + eax]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
cmp eax, 0xeeeeeeee
jne 0x4d1dbc
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov ecx, ebx
mov dword [esp + 0x18], ebx
sub ecx, eax
lea eax, [esi + 0xf4]
add ecx, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x60]
push eax
sub edx, ecx
push 0x1000400
push 0
lea ecx, [esp + 0x24]
push 0
add edx, edi
push ecx
mov ecx, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
call fcn.004ba740
jmp 0x4d1dfe
cmp eax, 0xffffffff
je 0x4d1e02
mov ecx, dword [esi + 0xa0]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
mov ecx, dword [ecx + edx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d1de6
cmp eax, dword [ecx + 0x68]
jg 0x4d1de6
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + eax*4]
jmp 0x4d1de8
xor eax, eax
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add ebx, eax
mov eax, dword [esi + 0x28]
inc edx
cmp edx, eax
mov dword [esp + 0x10], edx
jl 0x4d1e19
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x4d1d60
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x3c]
mov eax, ecx
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + edx*4]
cmp ecx, 0xeeeeeeee
jne 0x4d1e99
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x18], ebx
add ebx, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x34]
sub eax, ebx
mov dword [esp + 0x1c], edi
add eax, edi
mov dword [esp + 0x24], eax
lea eax, [esi + 0xf4]
push eax
push 0x1000400
push 0
push 0
push ecx
mov ecx, ebp
call fcn.004ba740
jmp 0x4d1edc
cmp ecx, 0xffffffff
je 0x4d1edc
mov eax, dword [esi + 0xa0]
mov edx, ecx
shr edx, 0x10
and ecx, 0xffff
mov eax, dword [eax + edx*4]
cmp ecx, dword [eax + 0x64]
jl 0x4d1ec4
cmp ecx, dword [eax + 0x68]
jg 0x4d1ec4
mov edx, dword [eax + 0x14]
mov eax, dword [edx + ecx*4]
jmp 0x4d1ec6
xor eax, eax
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esi + 0x2c]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4d1efc
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x4d2183
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esi + 0x50]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
add eax, ecx
mov eax, dword [edx + eax*4]
cmp eax, 0xeeeeeeee
jne 0x4d1f7d
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov eax, ebx
mov dword [esp + 0x18], ebx
sub eax, edx
mov edx, dword [esp + 0x78]
add eax, ecx
mov ecx, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
sub ecx, eax
lea eax, [esp + 0x18]
add ecx, edx
lea edx, [esi + 0xf4]
push edx
push 0x1000400
push 0
mov dword [esp + 0x30], ecx
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.004ba740
jmp 0x4d1fbf
cmp eax, 0xffffffff
je 0x4d1fbf
mov edx, dword [esi + 0xa0]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d1fa7
cmp eax, dword [ecx + 0x68]
jg 0x4d1fa7
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x4d1fa9
xor eax, eax
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x6c]
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x54]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4d1fda
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x4d20ab
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
cmp eax, 0xeeeeeeee
jne 0x4d2040
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x6c]
sub ecx, eax
add ecx, ebx
lea eax, [esi + 0xf4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x64]
push eax
sub edx, ecx
push 0x1000400
push 0
lea ecx, [esp + 0x24]
push 0
add edx, edi
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
call fcn.004ba740
jmp 0x4d2081
cmp eax, 0xffffffff
je 0x4d2085
mov ecx, dword [esi + 0xa0]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
mov ecx, dword [ecx + edx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d206a
cmp eax, dword [ecx + 0x68]
jg 0x4d206a
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + eax*4]
jmp 0x4d206c
xor eax, eax
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
lea edx, [esi + 0x60]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add ebx, eax
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4d209c
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
jne 0x4d1fea
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x20]
add ecx, edx
mov eax, dword [eax + ecx*4]
cmp eax, 0xeeeeeeee
jne 0x4d2112
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x98]
sub ebx, ecx
mov ecx, edi
add ebx, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x90]
sub ecx, ebx
mov dword [esp + 0x1c], edi
add ecx, edx
lea edx, [esi + 0xf4]
push edx
push 0x1000400
push 0
mov dword [esp + 0x30], ecx
push 0
push eax
mov ecx, ebp
call fcn.004ba740
jmp 0x4d2157
cmp eax, 0xffffffff
je 0x4d2157
mov edx, dword [esi + 0xa0]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d213c
cmp eax, dword [ecx + 0x68]
jg 0x4d213c
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x4d213e
xor eax, eax
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x8c]
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ebx, dword [esi + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x2c]
add edi, ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4d2174
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4d1f0f
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x24]
xor ecx, ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov ecx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x44]
sub eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0
mov eax, dword [edx + eax*4]
cmp eax, 0xeeeeeeee
jne 0x4d222a
mov eax, dword [esp + 0x30]
lea edx, [esi + 0xf4]
sub ecx, eax
mov eax, dword [esp + 0x48]
add ecx, ebx
push edx
mov dword [esp + 0x24], ecx
lea ecx, [edi + eax]
push 0x1000400
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x30], ecx
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
call fcn.004ba740
jmp 0x4d226c
cmp eax, 0xffffffff
je 0x4d226c
mov edx, dword [esi + 0xa0]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d2254
cmp eax, dword [ecx + 0x68]
jg 0x4d2254
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x4d2256
xor eax, eax
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x30]
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x28]
add ebx, ecx
mov ecx, dword [esp + 0x54]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4d2287
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x4d2366
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
lea edx, [ecx + eax]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
cmp eax, 0xeeeeeeee
jne 0x4d22fa
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
sub ecx, eax
add ecx, ebx
lea eax, [esi + 0xf4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x80]
push eax
sub edx, ecx
push 0x1000400
push 0
lea ecx, [esp + 0x24]
push 0
add edx, edi
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
call fcn.004ba740
jmp 0x4d233c
cmp eax, 0xffffffff
je 0x4d2340
mov ecx, dword [esi + 0xa0]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
mov ecx, dword [ecx + edx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d2324
cmp eax, dword [ecx + 0x68]
jg 0x4d2324
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + eax*4]
jmp 0x4d2326
xor eax, eax
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 0x7c]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add ebx, eax
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4d2357
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4d2297
xor eax, eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
cmp eax, 0xeeeeeeee
jne 0x4d23d4
mov ecx, dword [esp + 0x48]
add esi, 0xf4
mov dword [esp + 0x18], ebx
push esi
add ebx, edx
push 0x1000400
mov dword [esp + 0x24], edi
push 0
lea edx, [esp + 0x24]
add edi, ecx
push 0
push edx
mov ecx, ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
call fcn.004ba740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4
cmp eax, 0xffffffff
je 0x4d2416
mov edx, dword [esi + 0xa0]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x64]
jl 0x4d23fe
cmp eax, dword [ecx + 0x68]
jg 0x4d23fe
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x4d2400
xor eax, eax
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x30]
push edx
mov edx, dword [eax + 0x2c]
push ecx
push edx
push edi
push ebx
mov ecx, ebp
call fcn.004ba7e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4