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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
mov esi, dword [ebp + 8]
cmp edx, dword [esi + 0x14]
jge 0x44051e
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx + 4]
test eax, eax
je 0x440505
cmp byte [eax + 8], 2
jne 0x440505
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x20], ecx
je 0x4404e6
add dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx + 0xd0], eax
jne 0x440503
lea ebx, [eax + 4]
mov esi, ecx
call fcn.0040bfe0
mov edx, dword [esp + 0x10]
mov edi, eax
add dword [esp + 0x1c], 0x10
add edx, 1
test edi, edi
mov dword [esp + 0x10], edx
je 0x4404b8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x440da3
cmp dword [esp + 0x20], edi
je 0x440554
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x440554
mov ecx, dword [esi + 0xc0]
push ecx
call eax
mov edi, eax
add esp, 4
test edi, edi
je 0x440554
mov eax, 0x213
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
cmp byte [eax + 0xf], 0
je 0x44056c
mov eax, 0x46fb2c
jmp 0x44057a
mov eax, dword [eax + 0xa8]
test eax, eax
je 0x440b2c
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x440580
sub eax, ebx
and eax, 0x3fffffff
je 0x440b2c
cmp dword [esp + 0x18], 1
jle 0x440b2c
mov edx, dword [edx + 4]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov ebx, dword [esi]
xor ecx, ecx
cmp byte [eax + 0xf], cl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov edx, 0x46fb2c
jne 0x4405c5
mov edx, dword [eax + 0xa8]
cmp edx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ecx
jne 0x4405df
mov dword [esp + 0x20], ecx
jmp 0x4405fb
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4405e4
sub eax, esi
mov esi, dword [ebp + 8]
and eax, 0x3fffffff
mov dword [esp + 0x20], eax
push edx
push str._s_mjXXXXXX9XXz
call fcn.0041f570
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
jne 0x440620
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x440643
cmp eax, 0x64
jg 0x4406a5
cmp eax, 1
jne 0x440643
push esi
push str.MJ_collide:__s
lea ecx, [eax + 0xc]
call fcn.0041f550
add esp, 8
add dword [esp + 0x10], 1
lea eax, [esp + 0x28]
mov ecx, 4
call fcn.00409fc0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
movzx ecx, al
push ecx
shr eax, 8
push eax
lea eax, [edx + esi]
push str._mj_06X9_02X
mov edx, 0xd
call fcn.00415190
mov ecx, dword [ebx + 0x20]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
push esi
push ebx
call ecx
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4406e7
cmp dword [esp + 0x2c], eax
je 0x4406c1
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x440620
push esi
push str.MJ_delete:__s
mov ecx, 0xd
call fcn.0041f550
mov edx, dword [ebx + 0x1c]
push 0
push esi
push ebx
call edx
add esp, 0x14
test edi, edi
jne 0x4406e7
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push edi
push 0x4016
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0040f760
mov edi, eax
add esp, 0x10
test edi, edi
je 0x44070d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1d8], 0
mov eax, dword [esp + 0x14]
jne 0x4408a4
push eax
call fcn.0040a140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
xor eax, eax
cmp dword [ecx + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x4408d8
mov dword [esp + 0x20], eax
mov esi, ecx
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edx + 4]
test eax, eax
je 0x4407c5
cmp byte [eax + 8], 2
jne 0x4407c5
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov esi, dword [eax + 0xac]
test esi, esi
je 0x4407c5
cmp dword [esp + 0x1c], 0
jne 0x44076a
cmp byte [eax + 7], 0
jne 0x44076a
mov dword [esp + 0x1c], 1
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x440770
mov ecx, dword [esp + 0x34]
sub eax, edx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
and eax, 0x3fffffff
push ecx
add eax, 1
push eax
push esi
push ebx
call edx
mov edi, eax
mov eax, esi
add esp, 0x14
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4407a1
sub eax, esi
and eax, 0x3fffffff
add eax, 1
cdq
add dword [esp + 0x30], eax
adc dword [esp + 0x34], edx
test edi, edi
jne 0x440864
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
add dword [esp + 0x20], 0x10
add eax, 1
cmp eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jl 0x440729
cmp dword [esp + 0x1c], 0
je 0x4408d8
mov eax, dword [ebx]
mov ecx, dword [eax + 0x30]
push ebx
call ecx
add esp, 4
test eax, 0x400
jne 0x4408d8
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push 2
push ebx
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x4408d8
mov eax, dword [ebx]
test eax, eax
je 0x44082e
mov ecx, dword [eax + 4]
push ebx
call ecx
add esp, 4
mov dword [ebx], 0
push ebx
call fcn.0040a140
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x1c]
add esp, 4
push 0
push ebx
push eax
call edx
add esp, 0xc
cmp dword [esi + 0x1d8], 0
je 0x4408c6
mov eax, ebx
call fcn.0040cda0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
test eax, eax
je 0x440879
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 4
mov dword [ebx], 0
push ebx
call fcn.0040a140
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
add esp, 4
push 0
push esi
push eax
call ecx
mov edx, dword [ebp + 8]
add esp, 0xc
cmp dword [edx + 0x1d8], 0
je 0x4408b4
mov eax, esi
mov esi, edx
call fcn.0040cda0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040a140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040a140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
mov dword [esp + 0x10], 0
jne 0x440927
xor esi, esi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x14]
jge 0x440927
mov edx, ecx
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + eax + 4]
test ecx, ecx
je 0x44091b
xor eax, eax
cmp byte [ecx + 8], 2
jne 0x440919
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call fcn.004314b0
add esp, 4
mov edi, eax
add dword [esp + 0x10], 1
add esi, 0x10
test edi, edi
je 0x4408e6
mov eax, dword [ebx]
test eax, eax
je 0x44093c
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 4
mov dword [ebx], 0
cmp dword [0x47a008], 0
je 0x44098b
mov eax, dword [0x47c4a8]
test eax, eax
je 0x440958
push eax
call dword [0x47a05c]
add esp, 4
push ebx
call dword [0x47a038]
sub dword [0x47c300], eax
sub dword [0x47c324], 1
add esp, 4
push ebx
call dword [0x47a030]
mov eax, dword [0x47c4a8]
add esp, 4
test eax, eax
je 0x440995
push eax
call dword [0x47a064]
jmp 0x440992
push ebx
call dword [0x47a030]
add esp, 4
test edi, edi
je 0x4409cf
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1d8], 0
je 0x4409b9
mov eax, dword [esp + 0x14]
mov esi, ecx
call fcn.0040cda0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
push edx
call fcn.0040a140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
push esi
push eax
call ecx
mov edx, dword [ebp + 8]
add esp, 0xc
cmp dword [edx + 0x1d8], 0
mov edi, eax
mov dword [esp + 0x28], edi
je 0x440a03
mov eax, esi
mov esi, edx
call fcn.0040cda0
jmp 0x440a0c
push esi
call fcn.0040a140
add esp, 4
xor eax, eax
cmp edi, eax
jne 0x440da3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x440da3
mov dword [esp + 0x20], eax
mov esi, ecx
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + edx + 4]
test ebx, ebx
je 0x440b0a
mov al, byte [ebx + 8]
test al, al
je 0x440b0a
cmp al, 2
jne 0x440ac4
mov edi, dword [ebx + 4]
mov esi, dword [edi]
cmp dword [esi + 0x28], 0
jne 0x440aa2
cmp byte [esi + 0x10], al
jne 0x440a74
cmp byte [esi + 4], 0
je 0x440a74
cmp byte [esi + 5], 1
jne 0x440a74
mov byte [esi + 0x10], 1
jmp 0x440aa2
movzx ecx, byte [esi + 0x13]
add dword [esi + 0x64], 1
push 1
push ecx
mov eax, esi
call fcn.0040eb10
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x440a9b
cmp ecx, 0xa
jne 0x440aa2
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
add dword [ebx + 0x14], 0xffffffff
mov edx, dword [edi + 0x3c]
push edx
mov byte [edi + 0x11], 1
call fcn.0040c8d0
mov esi, dword [ebp + 8]
mov dword [edi + 0x3c], 0
mov edi, dword [esp + 0x2c]
add esp, 4
mov al, byte [ebx + 8]
test al, al
mov ecx, dword [ebx + 4]
jbe 0x440ae1
mov edx, dword [ebx]
cmp dword [edx + 0x98], 1
jle 0x440adf
mov byte [ebx + 8], 1
jmp 0x440b0a
test al, al
je 0x440aed
add dword [ecx + 0x28], 0xffffffff
jne 0x440aed
mov byte [ecx + 0x11], 0
mov byte [ebx + 8], 0
cmp byte [ecx + 0x11], 0
jne 0x440b0a
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x440b0a
mov dword [ecx + 0xc], 0
call fcn.00438800
mov eax, dword [esp + 0x10]
add dword [esp + 0x20], 0x10
add eax, 1
cmp eax, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jl 0x440a30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
mov dword [esp + 0x10], 0
jne 0x440b78
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x14]
jge 0x440b78
mov ecx, dword [esi + 0x10]
mov ecx, dword [ebx + ecx + 4]
test ecx, ecx
je 0x440b6c
xor eax, eax
cmp byte [ecx + 8], 2
jne 0x440b6a
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [ecx]
call fcn.004314b0
add esp, 4
mov edi, eax
add dword [esp + 0x10], 1
add ebx, 0x10
test edi, edi
je 0x440b40
xor eax, eax
cmp edi, eax
mov dword [esp + 0x10], eax
jne 0x440da3
mov dword [esp + 0x20], eax
jmp 0x440b93
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x14]
jge 0x440da3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + ecx + 4]
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x440d91
mov al, byte [ebx + 8]
test al, al
je 0x440d8f
cmp al, 2
jne 0x440cdf
mov edi, dword [ebx + 4]
mov esi, dword [edi]
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x2c], edi
jne 0x440cc3
cmp byte [esi + 0x10], 2
jne 0x440c8d
cmp byte [esi + 4], al
je 0x440c8d
cmp byte [esi + 5], 1
jne 0x440c8d
mov byte [esi + 0x10], 1
add dword [ebx + 0x14], 0xffffffff
mov esi, dword [edi + 0x3c]
test esi, esi
mov byte [edi + 0x11], 1
je 0x440cd4
cmp dword [esi + 8], 0
je 0x440c3a
lea ebx, [esi + 0xc]
mov edi, 0x7d
mov ecx, dword [ebx]
push ecx
call fcn.0040c8d0
add esp, 4
add ebx, 4
sub edi, 1
jne 0x440c23
mov edi, dword [esp + 0x2c]
cmp dword [0x47a008], 0
je 0x440cca
mov eax, dword [0x47c4a8]
test eax, eax
je 0x440c5a
push eax
call dword [0x47a05c]
add esp, 4
push esi
call dword [0x47a038]
sub dword [0x47c300], eax
sub dword [0x47c324], 1
add esp, 4
push esi
call dword [0x47a030]
mov eax, dword [0x47c4a8]
add esp, 4
test eax, eax
je 0x440cd4
push eax
call dword [0x47a064]
jmp 0x440cd1
movzx eax, byte [esi + 0x13]
add dword [esi + 0x64], 1
push 1
push eax
mov eax, esi
call fcn.0040eb10
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x440cb4
cmp ecx, 0xa
jne 0x440cbb
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
test eax, eax
je 0x440c02
mov edi, eax
jmp 0x440d91
push esi
call dword [0x47a030]
add esp, 4
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x3c], 0
mov cl, byte [ebx + 8]
test cl, cl
mov eax, dword [ebx + 4]
jbe 0x440cff
mov edx, dword [ebx]
cmp dword [edx + 0x98], 1
jle 0x440cfd
mov byte [ebx + 8], 1
jmp 0x440d8f
test cl, cl
je 0x440d0b
add dword [eax + 0x28], 0xffffffff
jne 0x440d0b
mov byte [eax + 0x11], 0
mov byte [ebx + 8], 0
cmp byte [eax + 0x11], 0
jne 0x440d8f
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x440d8f
mov dword [eax + 0xc], 0
mov eax, dword [ecx + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x440d6f
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov ebx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov edi, dword [ebx]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0046e8a0
push edx
mov edx, dword [edi + 0x48]
push eax
push ebx
call edx
add esp, 0x10
jmp 0x440d74
call fcn.00409690
cmp dword [esi + 0x78], 0
jne 0x440d8f
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x440d8f
push esi
call fcn.004353d0
add esp, 4
xor edi, edi
add dword [esp + 0x10], 1
add dword [esp + 0x20], 0x10
test edi, edi
je 0x440b90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret