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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f76e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc0]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esp + 0x20], esi
je 0x422133
mov edx, dword [ecx - 4]
cmp edx, ebx
lea eax, [ecx - 4]
je 0x42212a
mov eax, dword [ecx]
push 3
call dword [eax + 4]
jmp 0x422133
push eax
call fcn.004e50f9
add esp, 4
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov eax, dword [esi + 0xcc]
cmp eax, ebx
je 0x422158
push eax
call fcn.004e50f9
add esp, 4
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x1a0], ebx
call fcn.004205a0
mov ecx, eax
call fcn.00423770
lea eax, [esi + 0xe4]
push eax
call fcn.004205a0
mov ecx, eax
call fcn.00422b80
lea ecx, [esp + 0x24]
call fcn.00421600
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
mov byte [esp + 0x19c], 1
jbe 0x42220b
xor ebp, ebp
cmp ebx, ecx
mov eax, dword [esp + 0x28]
jae 0x4221d7
mov edx, dword [esp + 0x34]
lea ecx, [edx + ebp]
jmp 0x4221d9
xor ecx, ecx
push ecx
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00421620
push 1
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00422040
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ecx, dword [esp + 0x30]
inc ebx
add ebp, 0x18
cmp ebx, ecx
jb 0x4221c6
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x104]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x4c], ecx
jbe 0x422862
jmp 0x422230
mov ecx, dword [esp + 0x4c]
lea esp, [esp]
mov eax, dword [esp + 0x20]
cmp ecx, dword [eax + 0x104]
jae 0x422247
mov edx, dword [eax + 0x108]
lea ecx, [edx + ecx*4]
jmp 0x422249
xor ecx, ecx
mov edx, dword [eax + 0xfc]
mov esi, dword [eax + 0x100]
mov ecx, dword [ecx]
mov eax, ecx
shr eax, 0x10
mov edi, edx
shr edi, 1
sub eax, edi
mov edi, eax
mov eax, esi
and ecx, 0xffff
shr eax, 1
sub ecx, eax
mov ebp, ecx
push ebp
lea ebx, [edi + edx]
push ebx
push ebp
lea ecx, [esp + 0x17c]
push edi
add esi, ebp
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xa0], esi
call fcn.0048a5b0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push esi
push ebx
mov dword [esp + 0x9c], edx
mov edx, dword [eax + 8]
push ebp
lea eax, [esp + 0x1a0]
push ebx
push eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
call fcn.0048a5b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push esi
push edi
push esi
mov dword [esp + 0xdc], ecx
lea ecx, [esp + 0x174]
push ebx
push ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], eax
call fcn.0048a5b0
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov eax, dword [eax + 8]
push ebp
push edi
push esi
lea ecx, [esp + 0x198]
push edi
push ecx
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], eax
call fcn.0048a5b0
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov eax, dword [eax + 8]
add esp, 0x50
xor esi, esi
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0x38], 0x505f08
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
push 0xffffffffffffffff
mov byte [esp + 0x1a0], 2
push 1
lea ecx, [esp + 0x40]
call fcn.004202e0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
mov dword [ecx], edx
mov edx, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [ecx + 8], edx
mov edi, eax
jl 0x422ac6
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x40]
call fcn.004202e0
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*2]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [edx], eax
mov eax, dword [esp + 0xb0]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov esi, eax
jl 0x422ac6
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x40]
call fcn.004202e0
mov edx, dword [esp + 0x3c]
lea ecx, [esi + esi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x40]
test eax, eax
mov esi, eax
jl 0x422ac6
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x40]
call fcn.004202e0
mov ecx, dword [esp + 0x3c]
lea eax, [esi + esi*2]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
mov dword [edx], ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 8], ecx
mov ebp, dword [eax]
cmp ebp, eax
je 0x422824
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push eax
push ecx
push edx
lea edx, [esp + 0x16c]
push esi
push edx
call fcn.0048a5b0
mov ecx, dword [eax]
mov dword [esp + 0xd0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xd8], eax
mov edi, dword [ebp + 8]
add esp, 0x14
call fcn.00407270
mov esi, eax
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.00401300
push 0x14
lea ecx, [esi + 0x30]
push str..FireEvaDrawDlg.cpp
mov byte [esp + 0x1a4], 3
call fcn.00401880
mov dword [esi + 0x34], 0x294
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x19c], 2
call dword [edx + 0x14]
push edi
push str.GetCross_With_Path__d
push 4
call fcn.0047fc80
xor edi, edi
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x90], 0x505ef0
mov dword [esp + 0x94], ebx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], edi
cmp dword [esp + 0x40], edi
mov byte [esp + 0x19c], 4
mov dword [esp + 0x14], edi
jle 0x422697
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x422ac6
cmp eax, dword [esp + 0x40]
jge 0x422ac6
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0xc0]
push edx
push eax
call fcn.0048a660
add esp, 0xc
test eax, eax
je 0x422677
fld qword [esp + 0xe8]
call fcn.004d503c
fld qword [esp + 0xe0]
mov esi, eax
mov dword [esp + 0x1c], esi
call fcn.004d503c
mov ecx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x60], ecx
jl 0x422677
cmp ecx, dword [esp + 0xa4]
ja 0x422677
cmp esi, dword [esp + 0x54]
jl 0x422677
cmp esi, dword [esp + 0x8c]
ja 0x422677
xor eax, eax
test edi, edi
jle 0x4225e0
jmp 0x4225c0
test eax, eax
jl 0x422ac6
cmp eax, edi
jge 0x422ac6
cmp dword [ebx + eax*8], ecx
jne 0x4225db
cmp dword [ebx + eax*8 + 4], esi
je 0x4225e0
inc eax
cmp eax, edi
jl 0x4225c0
cmp eax, edi
jne 0x422677
call fcn.00407270
mov esi, eax
mov ecx, esi
mov dword [esp + 0x5c], esi
call fcn.00401300
push 0x14
lea ecx, [esi + 0x30]
push str..FireEvaDrawDlg.cpp
mov byte [esp + 0x1a4], 5
call fcn.00401880
mov dword [esi + 0x34], 0x2ab
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x19c], 4
call dword [edx + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push str.AddCross___d___d_
push 4
call fcn.0047fc80
add esp, 0x10
test edi, edi
mov esi, edi
jl 0x422ac6
push 0xffffffffffffffff
inc edi
push edi
lea ecx, [esp + 0x98]
call fcn.00420170
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x98]
mov dword [ebx + esi*8], edx
mov dword [ebx + esi*8 + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jl 0x422528
xor esi, esi
mov dword [esp + 0x6c], 0x505efc
mov dword [esp + 0x70], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
cmp edi, 1
mov byte [esp + 0x19c], 6
jne 0x422771
lea ecx, [esp + 0x6c]
push ecx
push ebx
mov ecx, dword [esp + 0x28]
push ebx
lea eax, [ebp + 8]
push eax
call fcn.00421b30
cmp dword [esp + 0x74], esi
je 0x4227d7
cmp ebp, dword [esp + 0x28]
mov edi, dword [ebp]
je 0x422709
mov eax, dword [ebp + 4]
mov dword [eax], edi
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
push ebp
mov dword [ecx + 4], edx
call fcn.004e50f9
mov eax, dword [esp + 0x30]
add esp, 4
dec eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
xor ebx, ebx
test eax, eax
mov ebp, edi
jle 0x4227da
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
test ebx, ebx
jl 0x422ac6
cmp ebx, dword [esp + 0x74]
jge 0x422ac6
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
push ecx
push edx
push edi
lea ecx, [esp + 0x30]
call fcn.00421620
push 1
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00422040
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [esp + 0x74]
inc ebx
add ecx, 0x18
cmp ebx, eax
mov dword [esp + 0x18], ecx
jl 0x422721
jmp 0x4227da
cmp edi, 2
jne 0x422784
lea edx, [esp + 0x6c]
lea eax, [ebx + 8]
push edx
push eax
jmp 0x4226c8
cmp edi, esi
je 0x4227d7
call fcn.00407270
mov esi, eax
mov ecx, esi
mov dword [esp + 0x5c], esi
call fcn.00401300
push 0x14
lea ecx, [esi + 0x30]
push str..FireEvaDrawDlg.cpp
mov byte [esp + 0x1a4], 7
call fcn.00401880
mov dword [esi + 0x34], 0x2b8
mov eax, dword [esi]
mov ecx, esi
mov byte [esp + 0x19c], 6
call dword [eax + 0x14]
push edi
push str.GetCross_Count_d.
push 0x20
call fcn.0047fc80
add esp, 0xc
mov ebp, dword [ebp]
mov eax, dword [esp + 0x70]
test eax, eax
mov dword [esp + 0x6c], 0x505efc
je 0x4227f3
push eax
call fcn.004e50f9
add esp, 4
mov eax, dword [esp + 0x94]
test eax, eax
mov byte [esp + 0x19c], 2
mov dword [esp + 0x90], 0x505ef0
je 0x42281a
push eax
call fcn.004e50f9
add esp, 4
cmp ebp, dword [esp + 0x28]
jne 0x422450
mov eax, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0x19c], 1
mov dword [esp + 0x38], 0x505f08
je 0x422845
push eax
call fcn.004e50f9
add esp, 4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x104]
inc eax
cmp eax, edx
mov dword [esp + 0x4c], eax
jb 0x422225
mov esi, ecx
mov edx, dword [esp + 0x2c]
push edx
push 0
lea ecx, [esp + 0x38]
call fcn.00420530
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
xor edx, edx
cmp ecx, eax
je 0x4228c5
xor edi, edi
cmp edx, dword [esp + 0x30]
mov ebx, ecx
mov ecx, dword [ecx]
jae 0x422892
mov eax, dword [esp + 0x34]
add eax, edi
jmp 0x422894
xor eax, eax
add ebx, 8
mov ebp, dword [ebx]
mov dword [eax], ebp
mov ebp, dword [ebx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ebx + 8]
mov dword [eax + 8], ebp
mov ebp, dword [ebx + 0xc]
mov dword [eax + 0xc], ebp
mov ebp, dword [ebx + 0x10]
mov dword [eax + 0x10], ebp
mov ebx, dword [ebx + 0x14]
mov dword [eax + 0x14], ebx
mov eax, dword [esp + 0x28]
inc edx
add edi, 0x18
cmp ecx, eax
jne 0x422880
lea ecx, [esp + 0xf0]
call fcn.0048bf30
lea eax, [esi + 0xe4]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1a4], 8
call fcn.0048bff0
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0xf4]
call fcn.0048ac70
fld qword [0x506118]
lea edi, [esi + 0xc8]
fstp qword [esp + 0x50]
xor ebx, ebx
push edi
lea ecx, [esp + 0xf4]
mov dword [esp + 0x20], ebx
call fcn.0048b4f0
mov ebp, dword [esi + 0xd0]
lea eax, [ebp + ebp*4]
lea ecx, [eax*4 + 4]
push ecx
mov dword [esi + 0xe0], ebp
call fcn.004e50fe
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, ebx
mov byte [esp + 0x19c], 9
je 0x422970
push fcn.004206c0
push 0x420640
push ebp
lea ebx, [eax + 4]
push 0x14
push ebx
mov dword [eax], ebp
call fcn.004d4d61
mov eax, dword [esi + 0xd0]
mov dword [esi + 0xc0], ebx
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x19c], 8
jle 0x422a62
mov dword [esp + 0x14], ebx
test ebx, ebx
jl 0x422ac6
cmp ebx, dword [edi + 8]
jge 0x422ac6
mov eax, dword [edi + 4]
lea edx, [esp + 0x60]
lea ebp, [ebx*8]
add eax, ebp
push edx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xfc]
call fcn.0048ba50
test eax, eax
je 0x422a48
cmp ebx, dword [edi + 8]
jge 0x422ac6
mov ecx, dword [esi + 0xc0]
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 4]
add ecx, edx
push ecx
add eax, ebp
push eax
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0xfc]
call fcn.0048bb10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x422a14
fld qword [esp + 0x60]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 5
jp 0x422a48
cmp ebx, dword [edi + 8]
jge 0x422ac6
mov eax, dword [edi + 4]
fld qword [esp + 0x60]
mov ecx, dword [esi + 0xc0]
fstp qword [esp + 0x50]
add eax, ebp
mov dword [esi + 0xdc], eax
add ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
mov dword [esi + 0xc4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xd0]
inc ebx
add ecx, 0x14
cmp ebx, eax
mov dword [esp + 0x14], ecx
jl 0x422992
lea ecx, [esp + 0xf0]
mov byte [esp + 0x19c], 1
call fcn.0048bea0
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x422a96
mov edi, dword [eax]
push eax
call fcn.004e50f9
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x422a85
push esi
call fcn.004e50f9
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x422ab0
push eax
call fcn.004e50f9
add esp, 4
mov ecx, dword [esp + 0x194]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004e2e19