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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x72f91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov edx, dword [0x7c67dc]
mov al, byte [edx + 0xd6]
test al, al
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
jne 0x58f86f
mov eax, dword [ecx + 0xa8]
test eax, eax
je 0x590524
call fcn.00595e20
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040ff20
test eax, eax
je 0x590524
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x12c]
test ecx, ecx
je 0x590524
xor ecx, ecx
mov cx, word [0x7d7448]
push ecx
call fcn.00595370
add esp, 4
test eax, eax
jne 0x590524
xor edx, edx
mov dx, word [0x7d2ecc]
push edx
call fcn.00595370
push 0xffff8106
mov esi, eax
call fcn.00595a10
add esp, 8
test esi, esi
mov dword [esp + 0x20], eax
je 0x58f8dd
mov al, byte [esi + 0x76]
test al, al
mov byte [esp + 0x16], 1
jne 0x58f8e2
mov byte [esp + 0x16], 0
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xac]
mov edi, dword [0x7c67dc]
mov esi, dword [edi + 0x50]
fld dword [esi + 0x18]
mov bl, al
mov byte [esp + 0x17], 0
mov byte [esp + 0x15], 1
mov dword [esp + 0x18], 0
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x20]
mov ebp, eax
mov eax, dword [edi + 0x78]
sar eax, 1
add ebp, eax
call sub.MSVCRT.dll__ftol
mov esi, dword [edi + 0x7c]
sar esi, 1
mov ecx, edi
sub esi, eax
call fcn.0040ff20
mov ecx, eax
call fcn.0056b800
and eax, 0xff
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
jne 0x58f984
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, eax
call fcn.0056b820
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
fstp dword [esp + 0x28]
jmp 0x58f98c
mov dword [esp + 0x28], 0
mov ecx, dword [0x7c67dc]
push 0x3d9
call fcn.0040f930
test bl, bl
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fst dword [esp + 0x2c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x1c]
je 0x58fa17
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov ecx, eax
call fcn.005264b0
mov eax, dword [eax + 0xd4]
fld dword [eax + 0x64]
mov ecx, dword [eax + 0x68]
mov edx, dword [eax + 0x6c]
mov eax, dword [0x7c67dc]
mov eax, dword [eax + 0x130]
fsub dword [eax + 0x30]
mov dword [esp + 0x54], ecx
fld dword [esp + 0x54]
mov dword [esp + 0x58], edx
fsub dword [eax + 0x34]
fld dword [esp + 0x58]
fsub dword [eax + 0x38]
fld st(2)
fmulp st(3)
fld st(0)
fmul st(1)
faddp st(3)
fld st(1)
fmul st(2)
faddp st(3)
fstp st(0)
fstp st(0)
fsqrt
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov edx, dword [0x7c67dc]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edx + 0x134]
call fcn.00430f70
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
push esi
push ebp
mov ecx, eax
mov dword [esp + 0x98], 0
call fcn.006cda70
mov eax, dword [esp + 0x30]
or ebx, 0xffffffff
test eax, eax
mov dword [esp + 0x88], ebx
je 0x58fa7a
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x58fa7a
test ecx, ecx
je 0x58fa7a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x58fb7f
mov cx, word [0x7d7c50]
push 0
push 0
mov word [esp + 0x38], cx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push 8
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00581440
mov edi, dword [eax]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x7c67dc]
lea edx, [esp + 0x54]
push edx
push 0x3d8
mov esi, ebx
mov dword [esp + 0x3c], 0
call fcn.0040f930
mov ebp, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x50]
fstp dword [esp]
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00590560
test al, al
je 0x58fafc
mov esi, 3
cmp esi, ebx
jne 0x58fb05
mov esi, 4
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x50]
cmp dword [ecx + 0x14], esi
je 0x58fb83
push 0
push esi
call fcn.00408620
push 0
lea ecx, [esp + 0x60]
call fcn.006e7d60
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x50]
lea eax, [esp + 0x20]
push eax
call fcn.00593640
mov eax, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea ecx, [eax + 0x2c]
mov dword [esp + 0x8c], 1
call fcn.006e93d0
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x88], ebx
je 0x58fb83
mov esi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec esi
mov edx, esi
test edx, edx
mov dword [eax], esi
jne 0x58fb83
test ecx, ecx
je 0x58fb83
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x58fb83
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x16]
test al, al
je 0x58fb93
mov dword [esp + 0x1c], 0
mov ecx, dword [0x7c67e0]
mov eax, dword [ecx + 0x90]
lea esi, [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00471b00
mov edi, dword [esp + 0x1c]
push edi
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.006f3050
test al, al
mov ebx, 2
je 0x58fbd5
mov dword [esp + 0x18], 1
jmp 0x58fc3c
fld dword [esp + 0x1c]
mov byte [esp + 0x15], 0
fcomp dword [0x74b444]
fnstsw ax
test ah, 1
je 0x58fd9c
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call fcn.006f3050
test al, al
jne 0x58fc38
mov eax, dword [0x7c67e0]
mov eax, dword [eax + 0x8c]
push eax
mov ecx, esi
call fcn.00471b00
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call fcn.006f3050
test al, al
je 0x58fd9c
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x58fd8d
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax]
mov al, byte [esp + 0x15]
test al, al
mov dword [esp + 0x20], ecx
je 0x58fe3b
fld dword [esp + 0x20]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x58fe3b
mov edx, dword [0x7c67e0]
mov esi, dword [edx + 0x8c]
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
je 0x58fc97
test ecx, ecx
je 0x58fc8d
call fcn.00404630
test esi, esi
mov dword [ebp + 0x14], esi
je 0x58fc97
inc dword [esi + 4]
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x58fcba
push edi
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.006f3050
test al, al
jne 0x58fcd8
jmp 0x58fd04
cmp eax, 2
jne 0x58fd04
push 0
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.006f3050
test al, al
je 0x58fd04
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
test eax, eax
je 0x58fd04
fld dword [eax + 0x14]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x58fd04
mov al, byte [esp + 0x16]
test al, al
mov byte [esp + 0x15], 0
je 0x58fd04
mov dword [esp + 0x18], 2
fld dword [esp + 0x28]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x41
jne 0x58fe50
fld dword [esp + 0x20]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x58fe50
test ebx, ebx
je 0x58fd8d
push ebx
call fcn.004c3c40
mov esi, eax
add esp, 4
test esi, esi
je 0x58fe50
mov ecx, dword [esi + 0x28]
add ecx, 4
call fcn.004ee8b0
cmp eax, 0x4b4f4f42
jg 0x58fd6a
je 0x58fd80
cmp eax, 0x41455243
je 0x58fd80
cmp eax, 0x49544341
je 0x58fd80
jmp 0x58fe50
cmp eax, 0x524f4f44
je 0x58fe2b
cmp eax, 0x5f43504e
jne 0x58fe50
mov dword [esp + 0x18], 0
mov byte [esp + 0x15], 0
mov eax, dword [ebp + 0xa8]
test eax, eax
je 0x58fd9c
call fcn.00595e20
mov ecx, ebp
call fcn.006f2f80
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x58fdb6
call fcn.00404630
mov dword [ebp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x58fdcd
mov eax, dword [ebp + 0xa8]
test eax, eax
je 0x58fdcd
call fcn.00595e20
mov ecx, dword [0x7c67dc]
mov ecx, dword [ecx + 0x4c]
push 2
push 0
call fcn.00406a80
test eax, eax
je 0x590524
xor edx, edx
mov dx, word [0x7d3098]
push edx
call fcn.00595370
mov edi, eax
add esp, 4
test edi, edi
je 0x58ff27
mov eax, dword [0x7c67dc]
mov esi, dword [eax + 0x50]
fld dword [esi + 0x20]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x18]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call fcn.00587730
mov bl, al
jmp 0x58ff2b
mov ecx, esi
call fcn.004e5340
test eax, eax
je 0x58fe50
jmp 0x58fd80
mov al, byte [esp + 0x16]
test al, al
je 0x58fe50
mov byte [esp + 0x15], 0
mov dword [esp + 0x18], 2
test ebx, ebx
je 0x58fd8d
mov ecx, ebx
call fcn.004eee40
mov esi, eax
test esi, esi
je 0x58fe8a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test eax, eax
je 0x58fe7e
cmp eax, 0x7ce280
je 0x58fe96
mov eax, dword [eax + 4]
test eax, eax
jne 0x58fe70
xor al, al
neg al
sbb eax, eax
and eax, esi
test eax, eax
jne 0x58fe9a
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x58fe58
jmp 0x58fd8d
mov al, 1
jmp 0x58fe80
mov esi, dword [eax + 0x14]
test esi, esi
je 0x58fecd
mov ecx, dword [esi + 0x28]
add ecx, 4
call fcn.004ee8b0
cmp eax, 0x49544341
jne 0x58fecd
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x58fecd
mov byte [esp + 0x15], al
cmp esi, dword [ebp + 0xa8]
je 0x58fd9c
cmp dword [esp + 0x18], 2
je 0x58feec
mov al, byte [esp + 0x15]
test al, al
je 0x58fd97
fld dword [esp + 0x1c]
fcomp dword [0x74b444]
fnstsw ax
test ah, 1
jne 0x58ff10
fld dword [esp + 0x20]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x58fd97
push 0
push 0
push esi
mov ecx, ebp
mov dword [ebp + 0xa8], esi
call fcn.00590d90
jmp 0x58fd9c
mov bl, byte [esp + 0x17]
xor ecx, ecx
mov cx, word [0x7d225c]
push ecx
call fcn.00595370
mov edi, eax
add esp, 4
test edi, edi
je 0x58ff6b
test bl, bl
jne 0x58ff6b
mov edx, dword [0x7c67dc]
mov esi, dword [edx + 0x50]
fld dword [esi + 0x20]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x18]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call fcn.00587730
mov bl, al
xor eax, eax
mov ax, word [0x7d3988]
push eax
call fcn.00595370
mov edi, eax
add esp, 4
test edi, edi
je 0x58ffaa
test bl, bl
jne 0x58ffaa
mov ecx, dword [0x7c67dc]
mov esi, dword [ecx + 0x50]
fld dword [esi + 0x20]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x18]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call fcn.00587730
mov bl, al
xor edx, edx
mov dx, word [0x7d2704]
push edx
call fcn.00595370
mov edi, eax
add esp, 4
test edi, edi
je 0x58ffed
test bl, bl
jne 0x590524
mov eax, dword [0x7c67dc]
mov esi, dword [eax + 0x50]
fld dword [esi + 0x20]
call sub.MSVCRT.dll__ftol
fld dword [esi + 0x18]
push eax
call sub.MSVCRT.dll__ftol
push eax
mov ecx, edi
call fcn.00587730
mov bl, al
test bl, bl
jne 0x590524
push 0xffff8106
call fcn.00595a10
mov edi, eax
add esp, 4
test edi, edi
je 0x5903f9
mov cx, word [0x7d7c50]
push 0
push 0
mov word [esp + 0x38], cx
mov edx, dword [esp + 0x38]
push 8
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.00581440
mov cx, word [0x7d7c30]
mov ebp, dword [eax]
push 0
push 0
mov word [esp + 0x38], cx
mov edx, dword [esp + 0x38]
push 8
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.00581440
mov ecx, dword [eax]
mov dx, word [0x7d7bc8]
push 0
push 0
mov word [esp + 0x38], dx
mov eax, dword [esp + 0x38]
push 8
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00581440
mov esi, dword [eax]
xor ebx, ebx
test esi, esi
jne 0x5900f5
push 0x44
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x88], 2
je 0x5900b5
mov ecx, eax
call fcn.00631350
mov esi, eax
jmp 0x5900b7
xor esi, esi
mov ecx, dword [0x7c67dc]
mov dword [esp + 0x88], 0xffffffff
call fcn.0040ff20
mov edx, dword [eax + 0x560]
mov eax, dword [esp + 0x28]
push 1
push 1
add edx, 0x3c
push edx
push 2
push eax
push ebp
mov ecx, esi
call fcn.006313e0
test esi, esi
mov dword [esi + 0xc], 1
je 0x590105
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ebx, dword [esi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov al, byte [esi + 0x40]
test al, al
je 0x59013f
mov ecx, dword [0x7c67dc]
push 1
push 0
push 0x276
call fcn.0040f930
push eax
call fcn.005f90c0
add esp, 0xc
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x590524
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [0x7c67dc]
push 0x3d8
mov dword [esp + 0x3c], 0
call fcn.0040f930
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.00590560
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
test eax, eax
je 0x59028c
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x14]
fld dword [eax + 0x38]
add eax, 0x38
fsub dword [esp + 0x50]
fld dword [eax + 4]
fsub dword [esp + 0x54]
fld dword [eax + 8]
fsub dword [esp + 0x58]
fstp dword [esp + 0x2c]
fld st(0)
fmul st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fcomp dword [0x747a6c]
fnstsw ax
test ah, 0x41
jne 0x59028c
mov ecx, 0x7cb478
call fcn.004d51b0
fld dword [esp + 0x40]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebx]
fld dword [esp + 0x44]
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [esp + 0x50]
sub esp, 8
fstp qword [esp + 8]
sub esp, 8
fld dword [esp + 0x74]
sub esp, 8
fstp qword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x80]
sub esp, 8
fstp qword [esp + 0x18]
sub esp, 8
fld dword [esp + 0x8c]
mov ecx, ebx
fstp qword [esp + 0x18]
mov ebp, eax
fld dword [esp + 0xa0]
fstp qword [esp + 0x10]
fld dword [esp + 0x9c]
fstp qword [esp + 8]
fld dword [esp + 0x98]
fstp qword [esp]
call dword [edx + 0x20]
push eax
push str.GetDropPlacement_trying_to_place_object__s_too_far__npos____.2f___.2f___.2f__norigin____.2f___.2f___.2f__ndir_____.2f___.2f___.2f_
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x54
push ebp
call fcn.00477400
add esp, 4
xor eax, eax
mov ax, word [0x7d2704]
push eax
call fcn.00595370
add esp, 4
test eax, eax
jne 0x590524
mov ecx, dword [0x7c67e0]
mov byte [esp + 0x17], al
mov eax, dword [ecx + 0xac]
test eax, eax
jne 0x5902e3
lea edx, [esp + 0x17]
push edx
sub esp, 0xc
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040a7e0
mov ecx, dword [0x7c67e0]
call fcn.00431170
mov ecx, eax
call fcn.004c1730
mov ecx, eax
call fcn.004e2330
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x2c]
add eax, 0x2c
test esi, esi
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
je 0x59034a
mov eax, dword [esi + 4]
test eax, eax
je 0x59034a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x59034a
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 0x14]
push str.OnPCDrop
call fcn.0050e7b0
cmp al, 0x73
jne 0x59034a
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov word [ecx + edx*2], 1
push 0
sub esp, 0xc
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040a7e0
sub esp, 0xc
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0040a7e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [0x7c67dc]
push ebx
call fcn.0040ff20
mov ecx, dword [0x7c67dc]
push eax
call fcn.0040ff20
mov ecx, eax
call fcn.0050f950
mov ecx, eax
call fcn.0050f620
mov ecx, eax
call fcn.0049b090
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x2e8]
push 1
push esi
call fcn.00632330
call fcn.005ce080
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0x50]
push 0
push 0
call fcn.00408620
mov ecx, edi
call fcn.00577fb0
push edi
call fcn.00727530
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x590524
mov cl, byte [esp + 0x16]
test cl, cl
je 0x590432
push eax
call fcn.005b2f00
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esp + 0x15]
test cl, cl
je 0x590524
mov ecx, dword [eax + 0x28]
add ecx, 4
mov byte [esp + 0x2c], 1
call fcn.004ee8b0
cmp eax, 0x524f4f44
jg 0x59047f
je 0x590524
cmp eax, 0x41455243
je 0x590524
cmp eax, 0x49544341
je 0x590524
cmp eax, 0x4b4f4f42
jne 0x5904a0
mov byte [esp + 0x2c], 2
jmp 0x5904a0
cmp eax, 0x54415453
je 0x590524
cmp eax, 0x544e4f43
je 0x590524
cmp eax, 0x5f43504e
je 0x590524
xor ecx, ecx
mov cx, word [0x7d2704]
push ecx
call fcn.00595370
add esp, 4
test eax, eax
jne 0x590524
xor edx, edx
mov dx, word [0x7d3098]
push edx
call fcn.00595370
add esp, 4
test eax, eax
je 0x590505
mov ax, word [0x7d3120]
xor ecx, ecx
mov cx, word [0x7d3098]
mov word [esp + 0x30], ax
push ecx
call fcn.00595370
mov edx, dword [esp + 0x34]
add esp, 4
push 0
push 0
push 1
push edx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00581440
cmp dword [eax], 0
jne 0x590524
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0xa8]
push edx
push eax
call fcn.004e9610
mov ecx, dword [esp + 0x80]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret