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

Disassembly:
push 0xffffffffffffffff
push 0x4c7383
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x51eea4]
xor eax, dword [esp + 0x160]
push ebx
push ebp
push esi
mov dword [esp + 0x15c], eax
lea eax, [esp + 0x20]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ebx
call fcn.00408c00
mov ecx, eax
call fcn.004014f0
mov eax, dword [eax]
push 0x51ff63
push str.Load_upgrade_file
push 0x51ff70
mov ecx, eax
mov dword [esp + 0x178], ebx
call fcn.00401560
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403f50
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x16c], 0xffffffff
mov ebp, 1
je 0x4a0838
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x1c], edx
jne 0x4a0838
mov eax, dword [ecx]
push ebp
call dword [eax]
push 0x10
call fcn.004ad909
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov dword [esp + 0x16c], ebp
mov edi, 0xf
je 0x4a08b8
mov eax, str._level_upgrade.xml
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0875
sub eax, edx
push eax
push str._level_upgrade.xml
lea ecx, [esp + 0xd8]
call fcn.00402cd0
push ecx
mov eax, esp
lea ecx, [esp + 0xd4]
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esi
mov byte [esp + 0x174], 2
mov dword [esp + 0x20], ebp
mov dword [eax], ebx
call fcn.0040cb30
mov esi, eax
jmp 0x4a08ba
xor esi, esi
mov dword [esp + 0x24], esi
cmp esi, ebx
mov dword [esp + 0xec], esi
je 0x4a08cc
inc dword [esi + 4]
test byte [esp + 0x18], 1
mov dword [esp + 0x16c], 5
je 0x4a090d
cmp dword [esp + 0xe8], 0x10
jb 0x4a08f8
mov edx, dword [esp + 0xd4]
push edx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov eax, dword [esi]
push ebx
push ebx
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov byte [esp + 0x16c], 6
je 0x4a0943
mov edx, dword [ecx + 0xc]
cmp edx, ebx
je 0x4a0943
mov eax, dword [ecx + 0x10]
sub eax, edx
sar eax, 5
cmp eax, ebx
jne 0x4a09c6
lea edx, [esp + 0x10]
push edx
call fcn.00408c00
mov ecx, eax
call fcn.004014f0
mov eax, dword [eax]
push 0x51ff63
push str._is_empty
push str._level_upgrade.xml
push str.File
push 0x51ff84
mov ecx, eax
mov byte [esp + 0x180], 7
call fcn.00401560
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403f50
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x16c], 6
je 0x4a09c2
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x1c], eax
jne 0x4a09c2
mov edx, dword [ecx]
push ebp
call dword [edx]
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0xc]
mov eax, str.upgrades
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a09d1
sub eax, edx
push eax
mov eax, dword [esi + 0x14]
push str.upgrades
push eax
push ebx
mov ecx, esi
call fcn.00401470
test eax, eax
je 0x4a0a71
lea ecx, [esp + 0x10]
push ecx
call fcn.00408c00
mov ecx, eax
call fcn.004014f0
mov eax, dword [eax]
push 0x51ff63
push str._is_corrupt:_root_tag_must_be__level_
push str._level_upgrade.xml
push str.Level_file
push 0x51ff84
mov ecx, eax
mov byte [esp + 0x180], 8
call fcn.00401560
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403390
mov ecx, eax
call fcn.00403f50
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x16c], 6
je 0x4a0a71
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x1c], edx
jne 0x4a0a71
mov eax, dword [ecx]
push ebp
call dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4a0a86
inc dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp ecx, eax
mov byte [esp + 0x16c], 9
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
je 0x4a14a3
mov eax, str.upgrade
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0ab0
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebp, dword [edx + 0x14]
mov edx, ebp
cmp ebp, edx
mov dword [esp + 0x10], eax
jae 0x4a0aca
cmp edx, ebx
je 0x4a0b02
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jae 0x4a0ad8
mov ecx, edx
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x18], 0x10
jb 0x4a0ae7
mov esi, dword [esi + 4]
jmp 0x4a0aea
add esi, 4
mov edi, str.upgrade
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a0afa
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a101d
mov esi, dword [esp + 0x10]
cmp edx, esi
jb 0x4a101d
xor eax, eax
cmp edx, esi
setne al
cmp eax, ebx
jne 0x4a101d
mov eax, 0xf
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov eax, 0x4f130c
mov byte [esp + 0x16c], 0xa
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0b60
sub eax, edx
push eax
push 0x4f130c
lea ecx, [esp + 0x88]
call fcn.00402cd0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp ebp, eax
mov dword [esp + 0x14], eax
je 0x4a0f97
mov eax, str.name
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0bd0
sub eax, edx
mov edx, dword [ebp + 0x14]
cmp edx, ebx
mov esi, eax
mov dword [esp + 0x10], esi
je 0x4a0c19
cmp edx, esi
mov ecx, edx
jb 0x4a0bee
mov ecx, esi
mov esi, dword [ebp + 0x18]
cmp esi, 0x10
lea eax, [ebp + 4]
jb 0x4a0bfb
mov eax, dword [eax]
mov esi, eax
mov edi, str.name
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a0c0d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a0cba
mov esi, dword [esp + 0x10]
cmp edx, esi
jb 0x4a0cba
xor eax, eax
cmp edx, esi
setne al
cmp eax, ebx
jne 0x4a0cba
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
lea ecx, [esp + 0x128]
push ecx
call fcn.004510c0
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x178], 0xb
call fcn.00402aa0
cmp dword [esp + 0x124], 0x10
mov byte [esp + 0x16c], 0xa
jb 0x4a0ca0
mov edx, dword [esp + 0x110]
push edx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
jmp 0x4a0f88
mov eax, 0x4f79a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0cc2
mov ecx, dword [ebp + 0x14]
sub eax, edx
mov edx, ecx
cmp ecx, edx
mov esi, eax
mov dword [esp + 0x10], esi
jae 0x4a0cda
cmp edx, ebx
je 0x4a0d0d
cmp edx, esi
mov ecx, edx
jb 0x4a0ce6
mov ecx, esi
mov esi, dword [ebp + 0x18]
cmp esi, 0x10
lea eax, [ebp + 4]
jb 0x4a0cf3
mov eax, dword [eax]
mov esi, eax
mov edi, 0x4f79a0
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a0d05
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a0d55
mov esi, dword [esp + 0x10]
cmp edx, esi
jb 0x4a0d55
xor eax, eax
cmp edx, esi
setne al
cmp eax, ebx
jne 0x4a0d55
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0x9c], eax
jmp 0x4a0f88
mov eax, str.max_level
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0d60
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
push str.max_level
push eax
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a0db8
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0xa0], eax
jmp 0x4a0f88
mov eax, str.cost
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0dc0
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
push str.cost
push eax
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a0e18
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0xa4], eax
jmp 0x4a0f88
mov eax, str.inc_cost
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0e20
mov ecx, dword [ebp + 0x14]
sub eax, edx
push eax
push str.inc_cost
push ecx
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a0e78
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0xa8], eax
jmp 0x4a0f88
mov eax, str.value1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0e80
sub eax, edx
mov edx, dword [ebp + 0x14]
push eax
push str.value1
push edx
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a0ed8
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410370
fstp dword [esp + 0xc8]
add esp, 0x1c
jmp 0x4a0f88
mov eax, str.value2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0ee0
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
push str.value2
push eax
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a0f25
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
add eax, 0x24
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00402c40
call fcn.00410370
fstp dword [esp + 0xcc]
add esp, 0x1c
jmp 0x4a0f88
push 0x4f2754
push ebp
call fcn.00401dc0
add esp, 8
test al, al
je 0x4a0f88
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
add eax, 0x24
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00402c40
lea ecx, [esp + 0x160]
push ecx
call fcn.004510c0
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x178], 0xc
call fcn.00402aa0
lea ecx, [esp + 0x144]
mov byte [esp + 0x16c], 0xa
call fcn.00401b90
mov eax, dword [esp + 0x14]
add ebp, 0x20
cmp ebp, eax
jne 0x4a0bc6
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x80]
push edx
call fcn.0046b5c0
mov eax, dword [esp + 0xcc]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x16c], 9
jb 0x4a0fd0
mov eax, dword [esp + 0xb8]
push eax
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x98], edi
mov esi, 0xf
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
jb 0x4a1003
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jmp 0x4a148c
mov eax, 0x4f7960
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a1025
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
push 0x4f7960
push ebp
push ebx
call fcn.00401470
test eax, eax
jne 0x4a148c
mov eax, 0xf
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov eax, 0x4f130c
mov byte [esp + 0x16c], 0xd
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a1074
sub eax, edx
push eax
push 0x4f130c
lea ecx, [esp + 0x38]
call fcn.00402cd0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
cmp ebp, eax
mov dword [esp + 0x10], eax
je 0x4a1429
mov eax, str.name
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a10d0
sub eax, edx
mov edx, dword [ebp + 0x14]
cmp edx, ebx
mov esi, eax
mov dword [esp + 0x14], esi
je 0x4a1119
cmp edx, esi
mov ecx, edx
jb 0x4a10ee
mov ecx, esi
mov esi, dword [ebp + 0x18]
cmp esi, 0x10
lea eax, [ebp + 4]
jb 0x4a10fb
mov eax, dword [eax]
mov esi, eax
mov edi, str.name
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a110d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a11b7
mov esi, dword [esp + 0x14]
cmp edx, esi
jb 0x4a11b7
xor eax, eax
cmp edx, esi
setne al
cmp eax, ebx
jne 0x4a11b7
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
lea eax, [esp + 0x10c]
push eax
call fcn.004510c0
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x178], 0xe
call fcn.00402aa0
cmp dword [esp + 0x108], 0x10
mov byte [esp + 0x16c], 0xd
jb 0x4a119d
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
jmp 0x4a141a
mov eax, 0x4f79a0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a11c0
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
push 0x4f79a0
push eax
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a1215
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0x4c], eax
jmp 0x4a141a
mov eax, str.max_level
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a1220
sub eax, edx
mov edx, dword [ebp + 0x14]
push eax
push str.max_level
push edx
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a1275
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0x50], eax
jmp 0x4a141a
mov eax, str.cost
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a1280
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
push str.cost
push eax
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a12d5
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0x54], eax
jmp 0x4a141a
mov eax, str.inc_cost
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a12e0
mov ecx, dword [ebp + 0x14]
sub eax, edx
push eax
push str.inc_cost
push ecx
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a1335
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
add eax, 0x24
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402aa0
call fcn.00410420
add esp, 0x1c
mov dword [esp + 0x58], eax
jmp 0x4a141a
mov eax, str.value1
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a1340
sub eax, edx
mov edx, dword [ebp + 0x14]
push eax
push str.value1
push edx
push ebx
mov ecx, ebp
call fcn.00401470
test eax, eax
jne 0x4a1385
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
add eax, 0x24
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402c40
call fcn.00410370
fstp dword [esp + 0x78]
add esp, 0x1c
jmp 0x4a141a
push str.value2
push ebp
call fcn.00401dc0
add esp, 8
test al, al
je 0x4a13ba
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
add eax, 0x24
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402c40
call fcn.00410370
fstp dword [esp + 0x7c]
add esp, 0x1c
jmp 0x4a141a
push 0x4f2754
push ebp
call fcn.00401dc0
add esp, 8
test al, al
je 0x4a141a
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
add eax, 0x24
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402c40
lea eax, [esp + 0x144]
push eax
call fcn.004510c0
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x178], 0xf
call fcn.00402aa0
lea ecx, [esp + 0x128]
mov byte [esp + 0x16c], 0xd
call fcn.00401b90
mov eax, dword [esp + 0x10]
add ebp, 0x20
cmp ebp, eax
jne 0x4a10c5
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x10
call fcn.0046b5c0
mov eax, dword [esp + 0x7c]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x16c], 9
jb 0x4a145c
mov edx, dword [esp + 0x68]
push edx
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x48], edi
mov esi, 0xf
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x4a1480
mov eax, dword [esp + 0x34]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add eax, 0x20
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x4a0aa4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov byte [esp + 0x16c], 6
mov dword [ecx + 4], edx
jne 0x4a14c2
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x16c], 5
je 0x4a14eb
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x1c], eax
jne 0x4a14eb
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
dec eax
mov dword [esp + 0x16c], 0xffffffff
mov dword [ecx + 4], eax
jne 0x4a1509
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x164]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x158]
xor ecx, dword [esp + 0x168]
pop ebp
mov al, 1
pop ebx
add esp, 0x160
jmp fcn.004ae650