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

Disassembly:
mov eax, 0x2720
call fcn.0045ab40
mov eax, dword [0x4baad8]
xor eax, esp
mov dword [esp + 0x271c], eax
push ebp
push esi
push edi
push 0x103
xor esi, esi
lea eax, [esp + 0xb5]
push esi
push eax
mov ebp, ecx
mov byte [esp + 0xbc], 0
call fcn.0045ab70
mov ecx, dword [ebp + 0x57768]
add esp, 0xc
mov dword [esp + 0x14], esi
call fcn.00413360
mov ecx, dword [0x4c08ec]
push 0xffffffffffffffff
push 0xf5
push 0x63
call fcn.0040d2c0
mov ecx, dword [ebp + 0x57768]
call fcn.00412ea0
or eax, 0xffffffff
mov dword [ebp + 0x57774], eax
push 0x104
mov dword [ebp + 0x57778], eax
lea ecx, [esp + 0x1b8]
push esi
mov dword [ebp + 0x5777c], eax
push ecx
mov dword [ebp + 0x57780], eax
call fcn.0045ab70
push 0x410
lea edx, [esp + 0x1328]
push esi
push edx
call fcn.0045ab70
push 0x1510
push esi
push 0x4bda00
call fcn.0045ab70
push 0x1000
lea eax, [esp + 0x1750]
push esi
push eax
call fcn.0045ab70
mov eax, dword [ebp + 0x6f4]
lea edi, [esi + 4]
add esp, 0x30
cmp eax, edi
jge 0x404fc1
mov edi, eax
cmp eax, 4
push ebx
mov dword [ebp + 0x728], esi
mov dword [esp + 0x10], esi
jle 0x405162
cmp edi, esi
jle 0x405047
mov ebx, edi
jmp 0x404fe0
mov eax, dword [ebp + 0x6f8]
sub eax, esi
add eax, 1
js 0x405047
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x6e8]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x6f0], 0
call fcn.004049d0
cmp byte [esp + 0x6dc], 0
je 0x40503d
lea eax, [esp + 0x6dc]
push 0x48b630
push eax
call fcn.0045a2c0
add esp, 8
test eax, eax
je 0x405042
inc dword [esp + 0x10]
inc ebx
inc esi
cmp esi, ebx
jl 0x404fe0
xor esi, esi
test edi, edi
jle 0x405270
mov ecx, dword [ebp + 0x6f8]
mov edx, dword [esp + 0x10]
sub ecx, esi
lea eax, [ecx + edx + 1]
test eax, eax
jl 0x405270
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x6e8]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x6f0], 0
call fcn.004049d0
cmp byte [esp + 0x6dc], 0
je 0x405154
lea eax, [esp + 0x6dc]
push 0x48b630
push eax
call fcn.0045a2c0
add esp, 8
test eax, eax
jne 0x405154
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x6dc]
add eax, 0x4bda00
lea esp, [esp]
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x4050e0
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x34]
add eax, 0x4bde00
nop
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405100
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0xb4]
add eax, 0x4bde40
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405122
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x1b8]
add eax, 0x4bde20
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405144
inc dword [ebp + 0x728]
inc esi
cmp esi, edi
jl 0x405051
jmp 0x405270
cmp edi, esi
jle 0x405270
lea ebx, [ebx]
mov eax, dword [ebp + 0x6f8]
sub eax, esi
add eax, 1
js 0x405270
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x6e8]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x6f0], 0
call fcn.004049d0
cmp byte [esp + 0x6dc], 0
je 0x405266
lea eax, [esp + 0x6dc]
push 0x48b630
push eax
call fcn.0045a2c0
add esp, 8
test eax, eax
jne 0x405266
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x6dc]
add eax, 0x4bda00
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x4051f1
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x34]
add eax, 0x4bde00
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405210
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0xb4]
add eax, 0x4bde40
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405232
mov eax, dword [ebp + 0x728]
imul eax, eax, 0x544
lea edx, [esp + 0x1b8]
add eax, 0x4bde20
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x405254
inc dword [ebp + 0x728]
jmp 0x405267
inc edi
inc esi
cmp esi, edi
jl 0x405170
mov eax, dword [ebp + 0x728]
xor ebx, ebx
sub eax, 1
mov dword [esp + 0x10], eax
js 0x4058b0
mov edx, eax
imul eax, eax, 0x544
lea ecx, [esp + 0x131c]
mov dword [esp + 0x20], ecx
lea ecx, [eax + 0x4bde00]
mov dword [esp + 0x2c], ecx
lea ecx, [ebp + 0x57774]
mov dword [esp + 0x28], ecx
mov ecx, 0xfffffc00
sub ecx, eax
sub ecx, 0x4bda00
inc edx
mov dword [esp + 0x14], 0x52
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
push 0
mov dword [edx], 0
mov ecx, dword [ebp + 0x57768]
mov eax, 0x2d
push 0
mov word [esp + 0x88], ax
call fcn.00417ba0
mov edx, dword [0x4b31a0]
mov eax, dword [0x4b319c]
mov ecx, dword [ebp + 0x57768]
push edx
push eax
call fcn.00412d40
mov edi, dword [esp + 0x2c]
push edi
mov ecx, ebp
call fcn.004012d0
lea esi, [edi - 0x400]
push esi
mov ecx, ebp
call fcn.004012d0
mov eax, esi
mov esi, dword [esp + 0x24]
lea edx, [esp + esi + 0xadc]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405340
mov eax, edi
lea edx, [esp + esi + 0x34]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405350
lea eax, [edi + 0x40]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405360
mov edx, dword [esp + 0x20]
lea eax, [edi + 0x20]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x405370
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00401240
mov dword [esp + 0x1c], eax
test eax, eax
jge 0x4056cc
cmp eax, 0xffffffff
jge 0x4053a5
neg eax
mov dword [esp + 0x1c], eax
cmp word [esp + 0x172c], 0
je 0x405576
xor eax, eax
jmp 0x4053c0
movzx ecx, word [eax + 0x48b628]
mov word [esp + eax + 0xadc], cx
add eax, 2
test cx, cx
jne 0x4053c0
lea eax, [esp + 0x172c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053e0
lea edi, [esp + 0xadc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405400
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x172c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405426
sub eax, edx
sar eax, 1
shl eax, 4
cdq
sub eax, edx
sar eax, 1
mov esi, 0x30
sub esi, eax
lea eax, [esp + 0x172c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405450
sub eax, edx
sar eax, 1
cmp eax, 0xa
jb 0x4054f8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x48b620]
mov word [esp + eax + 0xadc], cx
add eax, 2
test cx, cx
jne 0x405470
lea eax, [esp + 0x172c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405490
lea edi, [esp + 0xadc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4054b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4054b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xadc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054d6
sub eax, edx
sar eax, 1
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
cdq
sub eax, edx
sar eax, 1
mov esi, 0x4b
sub esi, eax
mov edi, dword [esp + 0x14]
push 1
push ebx
push 0x63
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [ebp + 0x57768]
lea edx, [esp + 0xaec]
push edx
push 0x87
push edi
push esi
call fcn.004187a0
push 1
push ebx
push 1
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0xaec]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x8c
push edi
push esi
call fcn.004187a0
mov ecx, dword [ebp + 0x57768]
push 1
push ebx
push 2
lea edx, [esp + 0x2c8]
push edx
lea eax, [esp + 0xaec]
push eax
push 0x8c
push edi
push esi
call fcn.004187a0
jmp 0x4056cc
mov dl, byte [0x48b61e]
mov cx, word [0x48b61c]
lea eax, [esp + 0x34]
mov byte [esp + 0x2be], dl
mov word [esp + 0x2bc], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405598
lea edi, [esp + 0x2bc]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4055b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055d0
sub eax, edx
add eax, eax
add eax, eax
add eax, eax
cdq
sub eax, edx
sar eax, 1
mov esi, 0x30
sub esi, eax
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055f2
sub eax, edx
cmp eax, 0x14
jb 0x40566b
mov ax, word [0x48b618]
mov cl, byte [0x48b61a]
mov word [esp + 0x2bc], ax
lea eax, [esp + 0x34]
mov byte [esp + 0x2be], cl
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405621
lea edi, [esp + 0x2bc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405632
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405651
sub eax, esi
lea eax, [eax + eax*2]
add eax, eax
cdq
sub eax, edx
sar eax, 1
mov esi, 0x4b
sub esi, eax
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x57768]
push 1
push ebx
push 0x63
lea edx, [esp + 0x2c8]
push edx
push 0x87
push edi
push esi
call fcn.004185f0
mov ecx, dword [ebp + 0x57768]
push 1
push ebx
push 1
lea eax, [esp + 0x2c8]
push eax
push 0x8c
push edi
push esi
call fcn.004185f0
push 1
push ebx
push 2
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x8c
push edi
push esi
call fcn.004185f0
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x6dc]
mov byte [esp + eax + 0x2bc], cl
inc eax
test cl, cl
jne 0x4056d0
cmp word [esp + 0x1f2c], 0
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x57768]
push 1
push ebx
lea edx, [esp + 0x2c4]
push 0x63
lea edi, [esi + 0x16]
push edx
je 0x405778
lea eax, [esp + 0x1f3c]
push eax
push 0x87
push edi
push 0x1e0
call fcn.004187a0
push 1
push ebx
push 1
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [ebp + 0x57768]
lea edx, [esp + 0x1f3c]
push edx
push 0x8c
push edi
push 0x1e0
call fcn.004187a0
push 1
push ebx
push 2
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0x1f3c]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x8c
push edi
push 0x1e0
call fcn.004187a0
jmp 0x4057ce
push 0x87
push edi
push 0x1e0
call fcn.004185f0
mov ecx, dword [ebp + 0x57768]
push 1
push ebx
push 1
lea eax, [esp + 0x2c8]
push eax
push 0x8c
push edi
push 0x1e0
call fcn.004185f0
push 1
push ebx
push 2
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x8c
push edi
push 0x1e0
call fcn.004185f0
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 0x157
push 0x4b3
push 0xdc
push 0
push edx
lea edi, [esi + 0xe]
push edi
push 0x14
call fcn.00417d20
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 0x157
push 0x4b3
push 0xdc
push 0
push eax
push edi
push 0x14
call fcn.00417d20
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x40587a
mov ecx, eax
and ecx, 0x80000007
jns 0x405839
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
imul ecx, ecx, 0x97
and edx, 7
add eax, edx
sar eax, 3
imul eax, eax, 0x79
push 0
lea edx, [eax + 0x1ea]
push edx
lea edx, [ecx + 0x96]
push edx
add eax, 0x172
push eax
mov eax, dword [ebp + 0x57760]
push ecx
push eax
lea ecx, [esi + 0x12]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x14
call fcn.00417d20
mov eax, dword [esp + 0x10]
add dword [esp + 0x28], 4
add dword [esp + 0x20], 0x104
mov ecx, 0x544
add dword [esp + 0x24], ecx
sub dword [esp + 0x2c], ecx
dec eax
add esi, 0x96
inc ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
test eax, eax
jge 0x4052d0
mov ecx, dword [ebp + 0x57768]
push str.samune
push 0x4a
push 0x164
push 0x2c
push 0x147
call fcn.00417ba0
mov edx, dword [0x4b31a0]
mov eax, dword [0x4b319c]
mov ecx, dword [ebp + 0x57768]
push edx
push eax
call fcn.00412d40
mov ecx, dword [ebp + 0x57768]
push 1
call fcn.00412b10
mov ecx, dword [ebp + 0x57760]
push 0
push 0x63
push 0x25
push 0x1d
push 6
push 0
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x2c
push 0x147
call fcn.00419860
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 1
push 0x25
push 0x3d
push 6
push 0x1f
push edx
push 0x2c
push 0x147
call fcn.00419860
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 2
push 0x25
push 0x3d
push 6
push 0x1f
push eax
push 0x2c
push 0x147
call fcn.00419860
mov ecx, dword [ebp + 0x57760]
push 0
push 0x63
push 0x26
push 0x136
push 0
push 0x4c
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x26
push 0x164
call fcn.00419860
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 1
push 0x26
push 0x136
push 0
push 0x4c
push edx
push 0x26
push 0x164
call fcn.00419860
push 0
push 2
push 0x26
push 0x136
push 0
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0x4c
push eax
push 0x26
push 0x164
call fcn.00419860
mov ecx, dword [0x4c08ec]
cmp dword [ecx + 0xa0], 0
je 0x405a6e
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 0x63
push 0x20
push 0x155
push 0
push 0x136
push edx
push 0x2c
push 0x147
call fcn.00419860
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 1
push 0x20
push 0x155
push 0
push 0x136
push eax
push 0x2c
push 0x147
call fcn.00419860
mov ecx, dword [ebp + 0x57760]
push 0
push 2
push 0x20
push 0x155
push 0
push 0x136
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x2c
push 0x147
call fcn.00419860
xor edi, edi
cmp dword [ebp + 0x728], edi
mov dword [esp + 0x10], edi
jle 0x405c4b
lea ebx, [esp + 0x131c]
lea esi, [edi + 0x6e]
lea ebx, [ebx]
push edi
lea edx, [esp + 0x78]
push str.label_02d
push edx
call fcn.0045b724
add esp, 0xc
lea eax, [esp + 0x74]
push eax
lea ecx, [esi + 0x22]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x1e8
push esi
push 0x148
call fcn.00417ba0
mov edx, dword [0x4b31a0]
mov eax, dword [0x4b319c]
mov ecx, dword [ebp + 0x57768]
push edx
push eax
call fcn.00412d40
mov ecx, dword [ebp + 0x57760]
push 0
push 0x63
push 0x57
push 0x1e8
push 0x34
push 0x16a
push ecx
mov ecx, dword [ebp + 0x57768]
push esi
push 0x148
call fcn.00419860
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 1
push 0x57
push 0x26a
push 0x34
push 0x1ec
push edx
push esi
push 0x148
call fcn.00419860
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 2
push 0x57
push 0x26a
push 0x34
push 0x1ec
push eax
push esi
push 0x148
call fcn.00419860
cmp byte [ebx], 0
je 0x405c2e
push str.voice
lea ecx, [esi + 0x49]
push ecx
mov ecx, dword [ebp + 0x57768]
push 0x1e8
lea edi, [esi + 0x28]
push edi
push 0x148
call fcn.00417ba0
mov edx, dword [0x4b31a0]
mov ecx, dword [ebp + 0x57768]
inc dword [esp + 0x18]
push edx
push 0xff
call fcn.00412d40
mov ecx, dword [ebp + 0x57768]
push 0
push ebx
call fcn.00412d70
mov eax, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 0x63
push 0x2e
push 0x1e8
push 0xc
push 0x16a
push eax
push edi
push 0x148
call fcn.00419860
mov ecx, dword [ebp + 0x57760]
push 0
push 1
push 0x2e
push 0x26a
push 0xc
push 0x1ec
push ecx
mov ecx, dword [ebp + 0x57768]
push edi
push 0x148
call fcn.00419860
mov edx, dword [ebp + 0x57760]
mov ecx, dword [ebp + 0x57768]
push 0
push 2
push 0x2e
push 0x26a
push 0xc
push 0x1ec
push edx
push edi
push 0x148
call fcn.00419860
mov edi, dword [esp + 0x10]
inc edi
add ebx, 0x104
add esi, 0x96
cmp edi, dword [ebp + 0x728]
mov dword [esp + 0x10], edi
jl 0x405a90
mov ecx, dword [ebp + 0x57768]
call fcn.00417c60
mov eax, dword [ebp + 0x5776c]
mov ecx, dword [ebp + 0x57768]
push 0
push eax
call fcn.00418f20
mov eax, dword [ebp + 0x57770]
pop ebx
cmp eax, 0xffffffff
je 0x405ca8
cmp eax, 1
jne 0x405c85
mov ecx, dword [esp + 0x14]
add ecx, 2
push ecx
jmp 0x405c8b
mov edx, dword [esp + 0x14]
inc edx
push edx
mov ecx, dword [0x4c08ec]
push 0xf5
push 0x63
call fcn.0040d2c0
mov ecx, dword [ebp + 0x57768]
call fcn.00412ea0
mov ecx, dword [ebp + 0x57768]
push 0
call fcn.00414d50
mov ecx, dword [esp + 0x2728]
pop edi
pop esi
mov dword [ebp], 0
pop ebp
xor ecx, esp
call fcn.0045ab2a
add esp, 0x2720
ret