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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d4
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, 1
jne 0x404095
mov dword [ebx + 0x58], edi
mov dword [ebx + 0x54], edi
cmp dword [ebx], ebx
je 0x40490e
push edi
mov ecx, ebx
call fcn.00598120
mov eax, dword [esi + 0x40]
mov ecx, dword [esi]
mov dword [esp + 0xbc], eax
mov eax, dword [eax + 0x280]
push ecx
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0x64], eax
call fcn.00401c70
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x138]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xd8], eax
mov al, byte [ebx + 0x4d]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x13c]
add esp, 8
test al, al
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
je 0x404133
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x8c], eax
jmp 0x40413a
mov dword [esp + 0x8c], edi
mov esi, dword [0x72b184]
mov ecx, dword [esi]
push edi
push 0xe
push esi
mov dword [esp + 0x64], edi
call dword [ecx + 0xe4]
push str.XETT_RoadSDr_SprayA
call fcn.0059aa50
mov edi, dword [ebx]
mov dword [esp + 0xb8], eax
add esp, 4
mov eax, ebx
mov dword [esp + 0x10], edi
call fcn.0058a1c0
cmp edi, eax
mov dword [esp + 0xa0], eax
je 0x4048f5
jmp 0x404190
mov edi, dword [esp + 0x10]
jmp 0x404190
mov ebx, dword [edi + 8]
mov eax, dword [esp + 0xb4]
cmp dword [ebx + 8], eax
mov edx, dword [edi]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xb8], edx
je 0x4048da
mov eax, dword [edi + 0x10]
test eax, eax
je case.0x4041e8.2
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
mov edx, 1
shl edx, cl
mov dword [esp + 0x14], ecx
test dword [eax + 0x534], edx
je 0x4048da
mov ecx, dword [ebx + 0x58]
dec ecx
cmp ecx, 0x19
ja case.0x4041e8.2
movzx ecx, byte [ecx + 0x404928]
jmp dword [ecx*4 + 0x404918]
cmp dword [esp + 0x14], 3
je 0x4048da
cmp dword [esp + 0x5c], eax
jne case.0x4041e8.2
jmp 0x4048da
cmp dword [esp + 0x14], 3
je case.0x4041e8.2
cmp dword [esp + 0x5c], eax
je 0x4048da
jmp case.0x4041e8.2
cmp dword [esp + 0x5c], eax
jne case.0x4041e8.2
mov edx, dword [esp + 0xbc]
mov eax, dword [edx + 0x284]
test eax, eax
jne 0x4048da
fld dword [0x6bda18]
mov eax, dword [ebx + 0x14]
test eax, eax
fdiv dword [ebx + 0x38]
mov dword [esp + 0x18], eax
fstp dword [esp + 0xa4]
je 0x4048da
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x404266
cmp dword [edi + 0xc], eax
jne 0x4048da
xor edi, edi
mov eax, 0x7123f8
call fcn.0040d720
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x77d7e0
call fcn.0040f2a0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040e310
lea edx, [ebx + 0x100]
push edx
lea eax, [esp + 0x1ac]
push eax
call fcn.00401c70
lea ecx, [ebx + 0x140]
push ecx
lea edx, [esp + 0x174]
push edx
call fcn.00401c70
movsx edi, byte [ebx + 0x19]
movsx edx, byte [ebx + 0x1a]
or eax, 0xffffffff
mov ecx, edi
shl eax, cl
mov ecx, edx
add esp, 0x18
push 0x2000
not eax
mov dword [esp + 0x9c], eax
or eax, 0xffffffff
shl eax, cl
mov ecx, edi
xor ebx, ebx
mov dword [esp + 0xa0], edi
not eax
mov dword [esp + 0x98], eax
mov eax, 1
shl eax, cl
mov ecx, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, 1
shl eax, cl
mov ecx, dword [0x70fff4]
fdivr dword [0x6bda18]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx*4 + 0x70ff78]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push eax
fstp dword [esp + 0xa4]
fild dword [esp + 0x2c]
fdivr dword [0x6bda18]
fstp dword [esp + 0x2c]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
add eax, 0x14
cmp ecx, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x10], ecx
je 0x404846
jmp 0x404363
mov ecx, dword [esp + 0x10]
movsx eax, word [ecx + 8]
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0xb0], edx
lea edx, [esp + 0x40]
fild dword [esp + 0x14]
lea eax, [esp + 0x150]
fmul dword [0x6bdb34]
fmul dword [esp + 0xa4]
fsubr dword [0x6bda18]
fstp dword [esp + 0x14]
fld dword [ecx + 0x14]
fld dword [ecx + 0x18]
fld dword [ecx + 0x10]
lea ecx, [esp + 0x110]
fstp dword [esp + 0x40]
push ecx
fxch st(1)
fstp dword [esp + 0x48]
push edx
push eax
fstp dword [esp + 0x54]
mov dword [esp + 0x58], 0x3f800000
call fcn.0059fa63
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x160]
push edx
fst dword [esp + 0x20]
lea eax, [esp + 0xe4]
fld dword [esp + 0x18]
mov dword [esp + 0xec], ecx
fmul st(1)
push eax
lea ecx, [esp + 0x108]
push ecx
fst dword [esp + 0xb8]
mov dword [esp + 0xf8], 0x3f800000
fstp dword [esp + 0xec]
fstp dword [esp + 0xf0]
call fcn.0059fa63
fld dword [esp + 0x100]
mov edx, dword [esp + 0xac]
fmul dword [0x6bda38]
mov eax, dword [esp + 0x1c]
fld dword [esp + 0xc0]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf0], edx
fmul st(1)
lea edx, [esp + 0x1a0]
mov dword [esp + 0xf4], eax
push edx
fstp dword [esp + 0x74]
lea eax, [esp + 0xf4]
fld dword [esp + 0xc8]
mov dword [esp + 0xfc], ecx
fmul st(1)
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x104], 0x3f800000
fstp dword [esp + 0x7c]
fld dword [esp + 0xd0]
push ecx
fmul st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0xdc]
fmul st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0xe0]
fmul st(1)
fstp dword [esp + 0x70]
fmul dword [esp + 0xe4]
fstp dword [esp + 0x74]
call fcn.0059fa63
fld dword [esp + 0x20]
fcomp dword [0x6bda00]
fnstsw ax
test ah, 5
jp 0x4044e0
mov dword [esp + 0x20], 0
fld dword [esp + 0x24]
fcomp dword [0x6bda00]
fnstsw ax
test ah, 5
jp 0x4044f9
mov dword [esp + 0x24], 0
fld dword [esp + 0x28]
fcomp dword [0x6bda00]
fnstsw ax
test ah, 5
jp 0x404512
mov dword [esp + 0x28], 0
fld dword [esp + 0x2c]
fcomp dword [0x6bda00]
fnstsw ax
test ah, 5
jp 0x40452b
mov dword [esp + 0x2c], 0
fld dword [esp + 0x20]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x404544
mov dword [esp + 0x20], 0x437f0000
fld dword [esp + 0x24]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x40455d
mov dword [esp + 0x24], 0x437f0000
fld dword [esp + 0x28]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x404576
mov dword [esp + 0x28], 0x437f0000
fld dword [esp + 0x2c]
fcomp dword [0x6bdbc8]
fnstsw ax
test ah, 0x41
jne 0x40458f
mov dword [esp + 0x2c], 0x437f0000
fld dword [esp + 0x2c]
fmul dword [0x6bda38]
call fcn.00666390
mov edi, eax
test edi, edi
je 0x40482e
fld dword [esp + 0x20]
shl edi, 8
call fcn.00666390
fld dword [esp + 0x24]
or edi, eax
shl edi, 8
call fcn.00666390
fld dword [esp + 0x28]
or edi, eax
shl edi, 8
call fcn.00666390
mov edx, dword [esp + 0x10]
or edi, eax
movzx eax, byte [edx + 0x1f]
mov edx, dword [esp + 0x98]
mov ecx, eax
and ecx, edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x9c]
sar eax, cl
fild dword [esp + 0x1c]
fmul dword [esp + 0x90]
and eax, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [esp + 0x18]
fld st(1)
fadd dword [esp + 0x90]
fld st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x60]
fadd dword [esp + 0x70]
fadd dword [esp + 0x40]
fstp dword [edx]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x64]
fadd dword [esp + 0x74]
fadd dword [esp + 0x44]
fstp dword [eax + 4]
mov ecx, dword [esp + 0xc]
fld dword [esp + 0x68]
fadd dword [esp + 0x78]
fadd dword [esp + 0x48]
fstp dword [ecx + 8]
mov edx, dword [esp + 0xc]
mov dword [edx + 0xc], edi
fld st(2)
mov eax, dword [esp + 0xc]
fstp dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
fld st(1)
fstp dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x40]
add eax, 0x18
fsub dword [esp + 0x70]
mov dword [esp + 0xc], eax
fadd dword [esp + 0x60]
fstp dword [eax]
mov edx, dword [esp + 0xc]
fld dword [esp + 0x44]
fsub dword [esp + 0x74]
fadd dword [esp + 0x64]
fstp dword [edx + 4]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x48]
fsub dword [esp + 0x78]
fadd dword [esp + 0x68]
fstp dword [eax + 8]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0xc], edi
mov edx, dword [esp + 0xc]
fld st(0)
fstp dword [edx + 0x10]
mov eax, dword [esp + 0xc]
fxch st(1)
fstp dword [eax + 0x14]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x40]
add eax, 0x18
fsub dword [esp + 0x70]
mov dword [esp + 0xc], eax
fsub dword [esp + 0x60]
fstp dword [eax]
mov ecx, dword [esp + 0xc]
fld dword [esp + 0x44]
fsub dword [esp + 0x74]
fsub dword [esp + 0x64]
fstp dword [ecx + 4]
mov edx, dword [esp + 0xc]
fld dword [esp + 0x48]
fsub dword [esp + 0x78]
fsub dword [esp + 0x68]
fstp dword [edx + 8]
mov eax, dword [esp + 0xc]
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0xc]
fstp dword [ecx + 0x10]
mov edx, dword [esp + 0xc]
fld dword [esp + 0x10]
fstp dword [edx + 0x14]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x70]
add eax, 0x18
fadd dword [esp + 0x40]
mov dword [esp + 0xc], eax
fsub dword [esp + 0x60]
fstp dword [eax]
mov eax, dword [esp + 0xc]
fld dword [esp + 0x74]
fadd dword [esp + 0x44]
fsub dword [esp + 0x64]
fstp dword [eax + 4]
mov ecx, dword [esp + 0xc]
fld dword [esp + 0x78]
fadd dword [esp + 0x48]
fsub dword [esp + 0x68]
fstp dword [ecx + 8]
mov edx, dword [esp + 0xc]
mov dword [edx + 0xc], edi
mov eax, dword [esp + 0xc]
fstp dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
fld dword [esp + 0x10]
fstp dword [ecx + 0x14]
mov edx, dword [esp + 0xc]
add edx, 0x18
inc ebx
cmp ebx, 0x12c
mov dword [esp + 0xc], edx
jne 0x40482e
mov edx, dword [0x70fff4]
mov eax, dword [edx*4 + 0x70ff78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [0x70fff4]
mov ecx, dword [eax*4 + 0x70ff78]
mov edx, dword [esi]
push 0x18
push 0
push ecx
push 0
push esi
call dword [edx + 0x190]
mov eax, dword [0x70fff0]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x1a0]
mov ecx, dword [esi]
push 1
push 0x1b
push esi
call dword [ecx + 0xe4]
mov edx, dword [esi]
push 0x258
push 0
push 0x4b0
push 0
push 0
push 4
push esi
call dword [edx + 0x148]
mov eax, dword [0x70fff4]
inc eax
cdq
mov ecx, 0x1e
idiv ecx
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
mov dword [0x70fff4], edx
mov eax, dword [edx*4 + 0x70ff78]
mov edx, dword [eax]
push eax
call dword [edx + 0x2c]
add dword [esp + 0x3c], ebx
xor ebx, ebx
mov eax, dword [esp + 0xb0]
cmp eax, dword [esp + 0xa8]
mov dword [esp + 0x10], eax
jne 0x40435f
mov edx, dword [0x70fff4]
mov eax, dword [edx*4 + 0x70ff78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test ebx, ebx
je 0x4048ce
mov eax, dword [0x70fff4]
mov ecx, dword [eax*4 + 0x70ff78]
mov edx, dword [esi]
push 0x18
push 0
push ecx
push 0
push esi
call dword [edx + 0x190]
mov eax, dword [0x70fff0]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x1a0]
mov ecx, dword [esi]
push 1
push 0x1b
push esi
call dword [ecx + 0xe4]
mov edx, dword [esi]
lea eax, [ebx + ebx]
push eax
push 0
lea ecx, [ebx*4]
push ecx
push 0
push 0
push 4
push esi
call dword [edx + 0x148]
mov eax, dword [0x70fff4]
inc eax
cdq
mov ecx, 0x1e
idiv ecx
mov eax, dword [esp + 0x3c]
add eax, ebx
mov dword [0x70fff4], edx
jmp 0x4048d2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4048da
add dword [esp + 0x58], eax
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0xa0]
mov dword [esp + 0x10], eax
jne 0x404182
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x54]
mov edx, dword [esp + 0x58]
push 1
add eax, edx
push 0xe
mov dword [ebx + 0x54], eax
mov eax, dword [esi]
push esi
call dword [eax + 0xe4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8