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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x20], edx
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x34], edi
xor ecx, ecx
mov dword [esp + 0x18], esi
mov edx, dword [edi + 0x3d0]
xor eax, eax
add edx, 6
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x2c], 0x1a03
mov dword [esp + 0x30], 0x1a25
nop dword [eax]
movzx ecx, word [edx - 2]
mov eax, ecx
test cx, cx
js 0x427bc1
cmp ax, word [esp + 0x28]
jge 0x427bc1
mov eax, 0x180f
cmp cx, ax
jne 0x427b1a
inc ebx
jmp 0x427bc1
mov eax, 0x1a0e
cmp cx, ax
jne 0x427b49
movzx eax, word [edx]
mov esi, eax
test ax, ax
jne 0x427b3c
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
jmp 0x427bc1
cmp si, 1
mov esi, dword [esp + 0x18]
jne 0x427b7d
inc edi
jmp 0x427bc1
mov eax, 0x1800
cmp cx, ax
jl 0x427b5d
mov eax, 0x1802
cmp cx, ax
jle 0x427b67
mov eax, 0x1829
cmp cx, ax
jne 0x427b7d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
inc ecx
add eax, dword [edx + 0x76]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jmp 0x427bc5
mov eax, ecx
cmp cx, word [esp + 0x2c]
je 0x427ba9
cmp cx, word [esp + 0x30]
je 0x427ba9
cmp byte [edx + 0x99], 0
je 0x427ba9
cmp word [edx], 4
jl 0x427ba9
mov eax, dword [esp + 0x1c]
add eax, dword [edx + 0x76]
mov dword [esp + 0x1c], eax
jmp 0x427bc1
movzx ecx, ax
add eax, 0xffffe5a8
cmp ax, 4
ja 0x427bc1
sub ecx, 0x1a57
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
add edx, 0x10c
sub dword [esp + 0x14], 1
jne 0x427af0
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x34]
cmp ebx, 1
jne 0x427fce
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x427bf3
cmp esi, 1
jmp 0x427bfc
cmp eax, 1
jne 0x427c02
cmp dword [esp + 0x14], eax
jne 0x427fce
cmp ecx, 1
jne 0x427fce
mov eax, dword [edi + 0x644]
lea esi, [edi + 0x3dc]
mov eax, dword [eax*4 + 0xbdb0e4]
cmp eax, 0xffffffff
jne 0x427c4b
mov eax, 0x68db8bad
imul dword [esp + 0x1c]
mov eax, 0x431bde83
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul dword [esp + 0x20]
sar edx, 0x14
mov eax, edx
add ecx, edx
shr eax, 0x1f
add eax, ecx
push esi
push edi
mov dword [esi], eax
call fcn.00426200
test al, al
jne 0x427c65
mov dword [esp + 0x38], 0xf08610c1
jmp 0x427fd6
push dword [esi]
push 8
push edi
call fcn.00411e50
mov ecx, dword [edi + 0x644]
mov edx, 0x64
mov dword [esi], eax
cmp dword [ecx*4 + 0xbdb0e4], 0xffffffff
jne 0x427c92
mov ecx, 0x5a
cmp eax, ecx
cmovg eax, ecx
jmp 0x427c98
cmp eax, 0x64
cmovg eax, edx
mov dword [esi], eax
mov esi, dword [edi]
mov dword [edi + 0x3d8], 0x4c4b40
mov ebx, dword [0x5d9188]
push esi
call fcn.00424cf0
test al, al
jne 0x427cc0
push esi
call fcn.00424da0
test al, al
je 0x427cc2
xor ebx, ebx
mov esi, dword [edi + 0x3d8]
mov eax, 0x51eb851f
mov ecx, esi
imul ecx, ebx
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [edi + 0xe4]
lea eax, [esi + ebx]
mov esi, dword [edi]
mov dword [edi + 0x3d8], eax
cmp edx, eax
jae 0x427d00
mov dword [esp + 0x38], 0x28610c1
jmp 0x427fd8
sub edx, eax
mov ecx, esi
mov dword [edi + 0xe4], edx
call fcn.004e9640
mov eax, dword [0x5d9194]
mov ecx, 0x5d9194
test eax, eax
jns 0x427d26
xor eax, eax
xchg dword [ecx], eax
mov eax, dword [0x5d9194]
test ebx, ebx
jle 0x427d37
add eax, ebx
cmp eax, 0x77359400
jg 0x427d37
lock xadd dword [ecx], ebx
call fcn.00526930
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [edi + 0x3dc]
jge 0x427f0f
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x48]
call fcn.00493c10
mov eax, ecx
push eax
push edi
test ebx, ebx
jne 0x427e49
push 0x41
call fcn.0049a340
test al, al
jne 0x427d80
mov dword [esp + 0x38], 0x8610c1
jmp 0x427fd6
mov eax, dword [esp + 0x24]
dec eax
cmp eax, 4
ja case.default.0x427d8a
jmp dword [eax*4 + 0x42802c]
mov ecx, 0x1805
mov word [esp + 0x4c], cx
jmp 0x427dd2
mov ecx, 0x1804
mov word [esp + 0x4c], cx
jmp 0x427dd2
mov ecx, 0x1803
mov word [esp + 0x4c], cx
jmp 0x427dd2
mov ecx, 0x182a
mov word [esp + 0x4c], cx
jmp 0x427dd2
mov ecx, 0x1806
mov word [esp + 0x4c], cx
jmp 0x427dd2
mov cx, word [esp + 0x4c]
push 0
push dword [esp + 0x124]
lea eax, [esp + 0x123]
or dl, 0xff
push eax
push dword [esp + 0x126]
cvttss2si eax, dword [esp + 0x78]
push dword [esp + 0x124]
movzx eax, al
push dword [esp + 0x112]
push dword [esp + 0xff]
push 0xffffffffffffffff
push dword [esp + 0x106]
push dword [esp + 0x109]
push dword [esp + 0x10c]
push eax
push dword [esp + 0x7e]
movsx eax, cx
mov ecx, dword [edi]
push eax
push 0
push 0
call fcn.00472500
push dword [edi + 0x3d8]
push dword [edi + 0x3dc]
push 0
jmp 0x427ed9
push 0x42
call fcn.0049a340
mov esi, dword [edi]
test al, al
jne 0x427e63
mov dword [esp + 0x38], 0x8610c1
jmp 0x427fd8
push 0
push dword [esp + 0x124]
lea eax, [esp + 0x123]
or dl, 0xff
push eax
push dword [esp + 0x126]
cvttss2si eax, dword [esp + 0x78]
mov ecx, esi
push dword [esp + 0x124]
movzx eax, al
push dword [esp + 0x112]
push dword [esp + 0xff]
push 0xffffffffffffffff
push dword [esp + 0x106]
push dword [esp + 0x109]
push dword [esp + 0x10c]
push eax
push dword [esp + 0x7e]
movsx eax, word [esp + 0x80]
push eax
push 0
push 0
call fcn.00472500
push dword [edi + 0x3d8]
push dword [edi + 0x3dc]
push ebx
lea eax, [edi + 0x86]
push eax
lea eax, [edi + 0x7b]
push eax
push str._Wing2Mix__Success___s___s_____Type:__d_ChaosSuccessRate:__d_ChaosMoney:__d_
push 7
push 0x9f30a0
call fcn.004b2600
add esp, 0x60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
xor esi, esi
xor edx, edx
mov ecx, dword [edi + 0x3d0]
add ecx, edx
call fcn.00493c10
mov eax, dword [edi + 0x3d4]
lea esi, [esi + 1]
add edx, 0x10c
mov byte [esi + eax - 1], 0xff
cmp edx, 0x2180
jl 0x427f13
push 0
push edi
call fcn.00431130
mov esi, dword [edi]
mov al, 0x10
movzx eax, al
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x8610c1
push eax
push esi
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
call fcn.005192f0
mov eax, dword [esi*4 + 0x20a514c]
mov ebx, dword [ebp + 0xc]
mov dword [eax + 0x3e0], 0
lea eax, [edi + 0x86]
push dword [edi + 0x3d8]
push dword [edi + 0x3dc]
push ebx
push eax
lea eax, [edi + 0x7b]
push eax
push str._Wing2Mix__Failure___s___s_____Type:__d_ChaosSuccessRate:__d_ChaosMoney:__d_
push 7
push 0x9f30a0
call fcn.004b2600
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x38], 0x78610c1
mov esi, dword [edi]
mov al, 0x10
mov dword [esp + 0x3c], 0xffffffff
movzx eax, al
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], 0xffffffff
push eax
push esi
mov dword [esp + 0x50], 0xffffffff
call fcn.005192f0
mov eax, dword [esi*4 + 0x20a514c]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov dword [eax + 0x3e0], 0
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8