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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x54c03c]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [edi]
cmp eax, 7
ja case.default.0x412f7a
jmp dword [eax*4 + 0x4fe860]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, edx
sub esi, eax
cmp esi, 4
jae 0x41334f
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 0xc], 4
mov dword [esp + 8], str.null
mov dword [esp], 4
call fcn.0040225a
sub esp, 0x10
mov bl, 1
jmp 0x413b9a
lea ebx, [esp + 0x60]
mov ecx, edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov dword [esp], ebx
call fcn.00427b70
sub esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x74], 0xf
jbe 0x413001
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], 1
call fcn.00431d70
jmp 0x4132e7
lea eax, [esp + 0x50]
mov ecx, edi
mov dword [esp], eax
call fcn.00427b00
sub esp, 4
mov ecx, dword [esp + 0x50]
mov esi, dword [esi + 4]
lea edi, [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp], edi
mov dword [esp + 4], ecx
call fcn.0041c020
jmp 0x413110
lea eax, [esp + 0x50]
mov ecx, edi
mov dword [esp], eax
call fcn.00427b30
sub esp, 4
cmp byte [esi + 1], 0
movsd xmm1, qword [esp + 0x50]
mov ebx, eax
mov dword [esp + 0x18], ebx
je 0x413235
movsd qword [esp], xmm1
movsd qword [esp + 0x28], xmm1
call fcn.004e8ba0
movsd xmm1, qword [esp + 0x28]
fstp qword [esp + 0x48]
ucomisd xmm1, qword [0x4fe858]
jb 0x413235
movsd xmm0, qword [0x4fe2b8]
ucomisd xmm0, xmm1
jb 0x413235
movsd xmm0, qword [esp + 0x48]
ucomisd xmm0, xmm1
jne 0x413235
jp 0x413235
mov esi, dword [esi + 4]
movsd qword [esp + 0x40], xmm1
lea edi, [esp + 0x60]
fld qword [esp + 0x40]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
mov word [esp + 0x1e], 0xc7f
fldcw word [esp + 0x1e]
mov word [esp + 0x1e], ax
fistp qword [esp + 0x38]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.0041c280
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], 0xf
jbe 0x41311f
mov edi, dword [esp + 0x60]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov ebx, edx
sub ebx, ecx
cmp ebx, eax
jae 0x4132c4
mov cl, byte [esp + 0x5c]
mov byte [esp + 4], cl
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.0040225a
sub esp, 0x10
jmp 0x4132e7
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x4132fd
lea ebx, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x413171
mov ecx, dword [ecx]
mov word [ecx + eax], 0x5b
cmp byte [esi + 2], 0
jne 0x413326
jmp 0x413425
lea eax, [esp + 0x50]
mov ecx, edi
mov dword [esp], eax
call fcn.00427ad0
sub esp, 4
mov esi, dword [esi + 4]
mov dword [esp + 0x18], eax
xor eax, eax
cmp byte [esp + 0x50], 0
mov edx, str.false
mov ecx, str.true
mov ebx, dword [esi + 0x14]
cmove ecx, edx
mov edx, dword [esi + 0x10]
sete al
or eax, 4
mov edi, ebx
sub edi, edx
cmp edi, eax
jae 0x41336f
mov dl, byte [esp + 0x60]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.0040225a
sub esp, 0x10
mov ebx, dword [esp + 0x18]
jmp 0x413b9a
cmp byte [esi], 0
setne bl
jmp 0x413b9a
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x41339b
lea ebx, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x413219
mov ecx, dword [ecx]
mov word [ecx + eax], 0x7b
cmp byte [esi + 2], 0
jne 0x4133c4
jmp 0x4135e7
xor ebx, ebx
jmp 0x413b9a
lea edi, [esp + 0x60]
movsd qword [esp + 4], xmm1
mov dword [esp], edi
call fcn.0041c440
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x28], edi
cmp edx, 0xf
mov dword [esp + 0x20], eax
cmova edi, eax
test ebx, ebx
je 0x4139fb
mov dword [esp + 0x34], edx
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0x2e
call fcn.004d82c0
test eax, eax
je 0x41328c
sub eax, edi
cmp eax, 0xffffffff
jne 0x4132b3
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0x65
call fcn.004d82c0
test eax, eax
je 0x4139ce
sub eax, edi
cmp eax, 0xffffffff
je 0x4139ce
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
jmp 0x413a4d
lea ebx, [ecx + eax]
cmp edx, 0x10
mov dword [esi + 0x10], ebx
jb 0x4132d1
mov esi, dword [esi]
add ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.004da510
mov byte [esi + ebx], 0
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x18]
cmp eax, 0x10
jae 0x413b6b
jmp 0x413b9a
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5b
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
cmp byte [esi + 2], 0
je 0x413425
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x413406
lea ebx, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x413344
mov ecx, dword [ecx]
mov word [ecx + eax], 0x20
jmp 0x413425
lea esi, [eax + 4]
cmp edx, 0x10
mov dword [ecx + 0x10], esi
jb 0x41335c
mov ecx, dword [ecx]
mov dword [ecx + eax], 0x6c6c756e
mov byte [ecx + eax + 4], 0
mov bl, 1
jmp 0x413b9a
lea edi, [edx + eax]
cmp ebx, 0x10
mov dword [esi + 0x10], edi
jb 0x41337c
mov esi, dword [esi]
add edx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004da510
mov ebx, dword [esp + 0x18]
mov byte [esi + edi], 0
jmp 0x413b9a
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], 0x7b
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
cmp byte [esi + 2], 0
je 0x4135e7
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov ebx, edx
sub ebx, eax
cmp ebx, 2
jae 0x4135cf
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x4fe880
mov dword [esp], 2
call fcn.0040225a
sub esp, 0x10
jmp 0x4135e7
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], 0x20
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
lea eax, [esp + 0x60]
mov ecx, edi
mov dword [esp + 0x60], 0
mov dword [esp], eax
call fcn.00427c10
sub esp, 4
mov ebx, eax
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp edi, eax
mov dword [esp + 0x18], eax
je 0x41354b
xor ecx, ecx
mov dword [esp + 0x24], esi
nop dword [eax]
cmp byte [esi], 0
je 0x41346e
cmp dword [edi], 5
je 0x41353e
test cl, 1
je 0x413520
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x4134b0
mov esi, ebx
lea ebx, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x413493
mov ecx, dword [ecx]
mov ebx, esi
mov esi, dword [esp + 0x24]
mov word [ecx + eax], 0x2c
cmp byte [esi + 2], 0
jne 0x4134d6
jmp 0x413520
movzx eax, byte [esp + 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], 0x2c
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
cmp byte [esi + 2], 0
je 0x413520
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x413500
mov esi, ebx
lea ebx, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x4134f2
mov ecx, dword [ecx]
mov ebx, esi
mov esi, dword [esp + 0x24]
mov word [ecx + eax], 0x20
jmp 0x413520
movzx eax, byte [esp + 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], 0x20
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00412f50
sub esp, 8
test al, al
je 0x41353a
mov eax, ebx
mov cl, 1
mov ebx, eax
add edi, 0x20
cmp dword [esp + 0x18], edi
jne 0x413460
cmp byte [esi + 2], 0
je 0x413592
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x413573
lea edi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x41356b
mov ecx, dword [ecx]
mov word [ecx + eax], 0x20
jmp 0x413592
mov al, byte [esp + 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], 0x20
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x4135ba
lea esi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], esi
jb 0x4135ac
mov ecx, dword [ecx]
mov word [ecx + eax], 0x5d
and bl, 1
jmp 0x413b9a
mov al, byte [esp + 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5d
jmp 0x4139b7
lea ebx, [eax + 2]
cmp edx, 0x10
mov dword [ecx + 0x10], ebx
jb 0x4135dc
mov ecx, dword [ecx]
mov word [ecx + eax], 0xa0d
mov byte [ecx + eax + 2], 0
lea eax, [esp + 0x50]
mov ecx, edi
mov dword [esp + 0x50], 0
mov dword [esp], eax
call fcn.00427c30
sub esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x60]
mov dword [esp], eax
call fcn.00428480
sub esp, 4
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
cmp edx, dword [ecx + 0xc]
je 0x4138b0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x24], esi
lea edi, [eax + eax*2 + 3]
inc eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
jmp 0x413670
lea edi, [eax + 2]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x41364d
mov ecx, dword [ecx]
mov word [ecx + eax], 0xa0d
mov byte [ecx + eax + 2], 0
cmp byte [esi + 2], 0
jne 0x413736
jmp 0x4137a6
cmp byte [esi], 0
je 0x413681
mov eax, dword [edx + 0x18]
cmp dword [eax], 5
je 0x4138a0
test bl, 1
mov ebx, dword [esp + 0x18]
je 0x413730
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x4136b9
lea edi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x4136a8
mov ecx, dword [ecx]
mov word [ecx + eax], 0x2c
cmp byte [esi + 2], 0
jne 0x4136e3
jmp 0x4137a6
movzx eax, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 8], 0x2c
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
cmp byte [esi + 2], 0
je 0x4137a6
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edi, edx
sub edi, eax
cmp edi, 2
jae 0x413640
movzx eax, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x4fe880
mov dword [esp], 2
call fcn.0040225a
sub esp, 0x10
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [esi + 2], 0
je 0x4137a6
mov eax, esi
mov esi, ebx
mov ebx, dword [esp + 0x20]
mov edi, dword [eax + 4]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov edx, ecx
sub edx, eax
cmp edx, ebx
mov edx, ebx
jae 0x413777
movzx eax, byte [esp + 0x5c]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp + 8], edx
mov dword [esp], edx
mov dword [esp + 0xc], 0x20
call fcn.004042da
sub esp, 0x10
mov ebx, esi
jmp 0x4137a2
lea ebx, [eax + edx]
cmp ecx, 0x10
mov dword [edi + 0x10], ebx
jb 0x413784
mov edi, dword [edi]
add eax, edi
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.004daa90
mov byte [edi + ebx], 0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 4]
mov edx, dword [eax + 0x10]
cmp dword [eax + 0x14], 0xf
jbe 0x4137b8
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], 1
call fcn.00431d70
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x413800
lea edi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x4137ea
mov ecx, dword [ecx]
mov word [ecx + eax], 0x3a
cmp byte [esi + 2], 0
jne 0x413826
jmp 0x413870
movzx eax, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 8], 0x3a
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
cmp byte [esi + 2], 0
je 0x413870
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x413850
lea edi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x413840
mov ecx, dword [ecx]
mov word [ecx + eax], 0x20
jmp 0x413870
movzx eax, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 8], 0x20
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], ecx
mov ecx, esi
mov dword [esp], eax
call fcn.00412f50
sub esp, 8
test al, al
je 0x413892
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov bl, 1
mov dword [esp + 0x18], eax
add edx, 0x1c
mov dword [esp + 0x64], edx
cmp edx, dword [ecx + 0xc]
jne 0x413670
lea ecx, [esp + 0x60]
call fcn.00404440
cmp byte [esi + 2], 0
mov ebx, dword [esp + 0x18]
je 0x41397f
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edi, edx
sub edi, eax
cmp edi, 2
jae 0x413902
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x4fe880
mov dword [esp], 2
call fcn.0040225a
sub esp, 0x10
jmp 0x41391a
lea edi, [eax + 2]
cmp edx, 0x10
mov dword [ecx + 0x10], edi
jb 0x41390f
mov ecx, dword [ecx]
mov word [ecx + eax], 0xa0d
mov byte [ecx + eax + 2], 0
mov edi, dword [esi + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
lea eax, [eax + eax*2]
mov ebx, edx
sub ebx, ecx
cmp ebx, eax
jae 0x413954
mov cl, byte [esp + 0x60]
mov byte [esp + 4], cl
mov ecx, edi
mov dword [esp + 8], eax
mov dword [esp], eax
mov dword [esp + 0xc], 0x20
call fcn.004042da
sub esp, 0x10
jmp 0x41397b
lea ebx, [ecx + eax]
cmp edx, 0x10
mov dword [edi + 0x10], ebx
jb 0x413961
mov edi, dword [edi]
add ecx, edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20
mov dword [esp], ecx
call fcn.004daa90
mov byte [edi + ebx], 0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x4139a7
lea esi, [eax + 1]
cmp edx, 0x10
mov dword [ecx + 0x10], esi
jb 0x413999
mov ecx, dword [ecx]
mov word [ecx + eax], 0x7d
and bl, 1
jmp 0x413b9a
mov al, byte [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], 0x7d
mov dword [esp], 1
call fcn.00413be0
sub esp, 0xc
and bl, 1
jmp 0x413b9a
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0x45
call fcn.004d82c0
mov edx, dword [esp + 0x34]
test eax, eax
je 0x4139fb
sub eax, edi
cmp eax, 0xffffffff
je 0x4139fb
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
jmp 0x413a4d
sub edx, ebx
cmp edx, 2
jae 0x413a2f
mov al, byte [esp + 0x5c]
lea ecx, [esp + 0x60]
mov byte [esp + 4], al
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x4fe888
mov dword [esp], 2
call fcn.0040225a
sub esp, 0x10
jmp 0x413a41
lea eax, [ebx + 2]
mov dword [esp + 0x70], eax
mov word [edi + ebx], 0x302e
mov byte [edi + ebx + 2], 0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
cmp edx, 0xf
lea eax, [esp + 0x60]
cmovbe edi, eax
mov cl, byte [edi]
cmp cl, 0x2e
jne 0x413a9b
mov eax, dword [esp + 0x70]
cmp edx, eax
jne 0x413ad9
mov al, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea ecx, [esp + 0x60]
mov dword [esp], 1
call fcn.004097ee
sub esp, 0x14
jmp 0x413af4
mov eax, dword [esp + 0x70]
cmp eax, 2
jb 0x413af4
cmp cl, 0x2d
jne 0x413af4
cmp byte [edi + 1], 0x2e
jne 0x413af4
cmp edx, eax
jne 0x413bb1
mov al, byte [esp + 0x5c]
mov byte [esp + 4], al
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
jmp 0x413a86
inc eax
lea ecx, [edi + 1]
mov dword [esp + 4], edi
mov dword [esp + 0x70], eax
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.004da510
mov byte [edi], 0x30
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x74], 0xf
jbe 0x413b0a
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x413b3b
mov cl, byte [esp + 0x5c]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, esi
call fcn.0040225a
sub esp, 0x10
jmp 0x413b62
lea edi, [ecx + eax]
cmp edx, 0x10
mov dword [esi + 0x10], edi
jb 0x413b48
mov esi, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004da510
mov byte [esi + edi], 0
mov eax, dword [esp + 0x74]
cmp eax, 0x10
jb 0x413b9a
mov ecx, dword [esp + 0x60]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x413b8e
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x413bd7
add eax, 0x24
mov ecx, esi
mov edx, eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004d4589
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea edx, [eax + 1]
lea ecx, [edi + 1]
mov dword [esp + 8], eax
mov dword [esp + 0x70], edx
lea edx, [edi + 2]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004da510
mov byte [edi + 1], 0x30
jmp 0x413af4
call fcn.004e40e0
int3