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

Disassembly:
mov eax, 0x3e1c
call fcn.1006c620
mov eax, dword [0x100cf288]
xor eax, esp
mov dword [esp + 0x3e18], eax
mov eax, dword [esp + 0x3e28]
mov ecx, dword [esp + 0x3e3c]
push ebx
mov ebx, dword [esp + 0x3e24]
mov edx, dword [ebx + 0x30]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3e3c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x84]
lea ebp, [ebx + 4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], edx
call fcn.1002d650
mov dword [esp + 0x54], eax
push 0x10
mov edx, ebp
mov ecx, esi
lea eax, [esp + 0xb0]
mov dword [esp + 0x6c], 0x1312d00
call fcn.1002cf20
push 0x14
mov ecx, esi
lea eax, [esp + 0x94]
call fcn.1002cf20
push 0x14
mov ecx, esi
lea eax, [esp + 0x78]
call fcn.1002cf20
push ebp
lea eax, [esp + 0x3e1c]
call fcn.1002e530
push edi
mov edi, dword [esp + 0x3e5c]
lea eax, [ebx + 0xc4]
push eax
push edi
lea ecx, [esp + 0x3e28]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x84]
lea eax, [esp + 0xb0]
push eax
push ecx
push edx
lea eax, [esp + 0xfc]
push eax
mov eax, ebx
call fcn.1002dad0
mov eax, dword [esp + 0x90]
mov byte [esp + 0x46], 0
call fcn.1002d640
mov ecx, dword [esp + 0x70]
push ebp
mov dword [ecx], eax
call fcn.1002e640
mov ebp, eax
add esp, 0x38
test ebp, ebp
jne 0x1003045e
mov dword [esp + 0x2c], 0x40
jmp 0x100311f5
mov eax, 0xb
lea ecx, [esp + 0xac]
call fcn.1002eb10
lea eax, [esp + 0xac]
call fcn.1002cf90
mov ebx, eax
mov eax, dword [esp + 0x3e34]
mov edx, dword [eax]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x50]
mov dword [ebx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
cmp dword [ecx], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], 0
jne 0x100311f5
mov eax, ebx
call fcn.1002e630
test al, al
je 0x100304d2
mov edx, dword [esp + 0x4c]
neg edx
sbb dl, dl
and dl, 0xfd
add dl, 0xe
mov byte [esp + 0x13], dl
jmp 0x100304df
mov edx, ebx
call fcn.1002e600
mov byte [esp + 0x13], al
mov dl, al
mov eax, dword [esp + 0x50]
cmp dword [eax], 0
jne 0x100311f5
sub dword [esp + 0x68], 1
je 0x100310b1
movzx esi, dl
cmp esi, 0x1f
ja case.default.0x1003050a
movzx ecx, byte [esi + 0x1003129c]
jmp dword [ecx*4 + 0x10031250]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0
lea edx, [esp + 0x16]
push edx
push eax
lea ecx, [esp + 0x98]
push ecx
mov ebx, ebp
mov eax, esi
call fcn.10030050
mov edx, dword [esi + 0x84]
add esp, 0x10
cmp byte [edx + 0x2f1], 0
jne 0x100311f5
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0
lea eax, [esp + 0x16]
push eax
push ecx
lea edx, [esp + 0x78]
push edx
mov ebx, ebp
mov eax, esi
call fcn.10030050
mov eax, dword [esi + 0x84]
add esp, 0x10
cmp byte [eax + 0x2f1], 0
jne 0x100311f5
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
cmp eax, 1
jbe 0x100305c2
cmp byte [esp + 0x12], 0
jne 0x100305c2
xor esi, esi
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x84]
cmp byte [eax + 0x2f1], 0
mov byte [esp + 0x12], 1
jne 0x100311f5
mov edx, ebp
call fcn.1002e750
mov ecx, dword [esp + 0x3e44]
add edi, eax
mov dword [esp + 0x3e48], edi
jmp 0x10030afc
mov ecx, ebp
call fcn.1002e6a0
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x10030654
jmp 0x10030610
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add dword [esp + 0x3e44], eax
lea esi, [ebx + 1]
mov edx, ebp
call fcn.1002e7b0
add edi, eax
mov eax, dword [esp + 0x3e44]
push edi
push eax
lea esi, [esp + 0xd4]
call fcn.1002fc30
add ebx, 2
add esp, 8
cmp ebx, dword [esp + 0x14]
jb 0x10030610
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
cmp dl, 6
sete bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x100306ce
mov esi, dword [esp + 0x18]
mov edx, ebp
call fcn.1002e7b0
test bl, bl
je 0x10030699
add dword [esp + 0x3e44], eax
jmp 0x1003069b
add edi, eax
mov ecx, dword [esp + 0x3e44]
push edi
test bl, bl
push ecx
lea esi, [esp + 0xd4]
sete bl
call fcn.1002fc30
mov eax, dword [esp + 0x20]
inc eax
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x10030681
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp eax, 6
jb 0x100307a5
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x3e44]
lea esi, [ebx + 1]
mov edx, ebp
mov dword [esp + 0x20], eax
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 2]
mov edx, ebp
mov dword [esp + 0x14], eax
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x20]
lea esi, [ebx + 3]
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x14]
lea esi, [ebx + 4]
mov edx, ebp
mov dword [esp + 0x48], eax
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 5]
mov edx, ebp
mov dword [esp + 0x24], eax
call fcn.1002e7b0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x48]
add esi, eax
push esi
push edx
mov edx, dword [esp + 0x28]
push edi
push ecx
push edx
lea ecx, [esp + 0xe0]
push ecx
call fcn.1002fdb0
mov edx, dword [esp + 0x3c]
add ebx, 6
lea eax, [ebx + 6]
add esp, 0x18
mov dword [esp + 0x3e44], edx
mov edi, esi
cmp eax, dword [esp + 0x18]
jbe 0x100306f4
mov dl, byte [esp + 0x13]
mov dword [esp + 0x3e48], edi
cmp dl, 0x18
jne 0x100307e5
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add dword [esp + 0x3e44], eax
lea esi, [ebx + 1]
mov edx, ebp
call fcn.1002e7b0
mov ecx, dword [esp + 0x3e44]
add edi, eax
push edi
push ecx
lea esi, [esp + 0xd4]
mov dword [esp + 0x3e50], edi
call fcn.1002fc30
add esp, 8
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov eax, dword [esp + 0x4c]
cmp eax, 0xa
jg 0x100310b1
lea ecx, [eax + 1]
lea edx, [esp + 0xac]
mov dword [esp + 0x14], ecx
call fcn.1002eb30
mov ebx, eax
mov edx, ebp
mov dword [esp + 0x1c], ebx
call fcn.1002e710
cmp byte [esp + 0x13], 0x1d
mov esi, dword [esp + 0x5c]
mov ecx, eax
mov eax, ebx
je 0x10030838
call fcn.1002d600
jmp 0x1003083d
call fcn.1002d540
test eax, eax
jne 0x100310b1
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
jmp 0x100304b3
mov ecx, dword [esp + 0x4c]
cmp ecx, 1
jl 0x100310b1
dec ecx
lea edx, [esp + 0xac]
mov dword [esp + 0x4c], ecx
call fcn.1002eb30
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x100304b3
mov edx, dword [esp + 0x1c]
call fcn.1002e600
movzx eax, al
cmp eax, 0x25
ja case.0x1003050a.0
movzx eax, byte [eax + 0x100312d4]
jmp dword [eax*4 + 0x100312bc]
push 0
push 0x100b6018
jmp 0x100308f6
push 0
push 0x100b6024
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x3e54]
push edx
lea eax, [esp + 0x3e54]
push eax
push ebp
call fcn.10030130
mov edi, dword [esp + 0x3e60]
add esp, 0x18
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
push 0
push 0x100b6030
jmp 0x100308f6
push 1
push 0x100b603c
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x3e54]
push edx
lea eax, [esp + 0x3e54]
push eax
push ebp
call fcn.10030130
mov edi, dword [esp + 0x3e60]
mov ebx, dword [esp + 0x34]
add esp, 0x18
jmp 0x100304b3
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x16]
push ecx
push edx
lea eax, [esp + 0x78]
push eax
mov ebx, ebp
mov eax, esi
call fcn.10030050
mov ecx, dword [esi + 0x84]
add esp, 0x10
cmp byte [ecx + 0x2f1], 0
jne 0x100311f5
cmp byte [esp + 0x13], 0x13
jne 0x1003099e
lea eax, [esp + 0x6c]
call fcn.1002cf80
mov edx, eax
lea eax, [esp + 0x8c]
call fcn.1002cf80
mov ebx, dword [esp + 0x1c]
add eax, edx
lea edi, [esp + 0x3e0c]
call fcn.10030020
mov edi, dword [esp + 0x3e48]
mov eax, ebp
call fcn.1002e800
jmp 0x100304b3
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x2e2c]
push ecx
lea edx, [esp + 0x1f14]
mov edi, esi
push edx
lea esi, [esp + 0x2ee0]
call fcn.1002d760
mov eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x3e00]
call fcn.1002e530
lea eax, [esp + 0x7c]
call fcn.1002cf80
mov ecx, eax
lea eax, [esp + 0x9c]
call fcn.1002cf80
mov ebx, dword [esp + 0x2c]
add eax, ecx
lea edi, [esp + 0x3e00]
call fcn.10030020
push 0
push 0
mov edx, edi
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xac]
push ecx
mov edx, esi
push edx
call fcn.1002f8c0
mov edi, dword [esp + 0x3e70]
add esp, 0x28
mov eax, ebp
call fcn.1002e800
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
cmp eax, 2
jbe 0x10030a56
cmp byte [esp + 0x12], 0
jne 0x10030a56
xor esi, esi
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x84]
cmp byte [eax + 0x2f1], 0
mov byte [esp + 0x12], 1
jne 0x100311f5
mov edx, ebp
call fcn.1002e750
add edi, eax
mov dword [esp + 0x3e48], edi
call fcn.1002e750
mov ecx, dword [esp + 0x3e44]
add ecx, eax
push edi
push ecx
mov dword [esp + 0x3e4c], ecx
lea ecx, [esp + 0xd4]
push ecx
jmp 0x10030b06
mov ecx, ebp
call fcn.1002e6a0
cmp eax, 1
jbe 0x10030ac9
cmp byte [esp + 0x12], 0
jne 0x10030ac9
xor esi, esi
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov dword [edx], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x84]
cmp byte [ecx + 0x2f1], 0
mov byte [esp + 0x12], 1
jne 0x100311f5
mov edx, ebp
call fcn.1002e750
mov ecx, dword [esp + 0x3e44]
add ecx, eax
mov dword [esp + 0x3e44], ecx
push edi
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.100302a0
add esp, 0xc
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp eax, 6
jbe 0x10030b97
mov dword [esp + 0x18], 6
jmp 0x10030b40
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
mov esi, dword [esp + 0x18]
add dword [esp + 0x3e44], eax
add esi, 0xfffffffb
mov edx, ebp
call fcn.1002e7b0
add edi, eax
mov eax, dword [esp + 0x3e44]
push edi
push eax
lea esi, [esp + 0xd4]
call fcn.1002fc30
mov eax, dword [esp + 0x20]
add eax, 2
add esp, 8
add ebx, 2
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x28]
jb 0x10030b40
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3e48], edi
cmp ebx, eax
jae 0x10030c4a
nop
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x3e44]
lea esi, [ebx + 1]
mov edx, ebp
mov dword [esp + 0x20], eax
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 2]
mov edx, ebp
mov dword [esp + 0x14], eax
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x20]
lea esi, [ebx + 3]
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x14]
lea esi, [ebx + 4]
mov edx, ebp
mov dword [esp + 0x48], eax
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 5]
mov edx, ebp
mov dword [esp + 0x24], eax
call fcn.1002e7b0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x48]
add esi, eax
push esi
push ecx
mov ecx, dword [esp + 0x28]
push edi
push edx
push ecx
lea edx, [esp + 0xe0]
push edx
call fcn.1002fdb0
mov eax, dword [esp + 0x3c]
add ebx, 6
add esp, 0x18
mov dword [esp + 0x3e44], eax
mov edi, esi
cmp ebx, dword [esp + 0x28]
jb 0x10030ba0
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
xor ebx, ebx
mov dword [esp + 0x20], eax
test eax, eax
jbe 0x10030d1a
jmp 0x10030c75
mov eax, dword [esp + 0x20]
sub eax, ebx
test al, 1
je 0x10030c92
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x3e44]
inc ebx
mov dword [esp + 0x18], eax
jmp 0x10030c9d
mov ecx, dword [esp + 0x3e44]
mov dword [esp + 0x18], ecx
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 1]
mov edx, ebp
mov dword [esp + 0x14], eax
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x18]
lea esi, [ebx + 2]
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x14]
lea esi, [ebx + 3]
mov edx, ebp
mov dword [esp + 0x24], eax
call fcn.1002e7b0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x24]
add esi, eax
push esi
push edi
push edi
push edx
push ecx
lea edx, [esp + 0xe0]
push edx
call fcn.1002fdb0
add ebx, 4
add esp, 0x18
mov dword [esp + 0x3e44], edi
mov edi, esi
cmp ebx, dword [esp + 0x20]
jb 0x10030c71
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x10030de3
jmp 0x10030d45
mov eax, dword [esp + 0x14]
sub eax, ebx
test al, 1
je 0x10030d5d
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
add eax, edi
mov dword [esp + 0x18], eax
inc ebx
jmp 0x10030d61
mov dword [esp + 0x18], edi
mov esi, ebx
mov edx, ebp
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x3e44]
lea esi, [ebx + 1]
mov edx, ebp
mov dword [esp + 0x24], edi
call fcn.1002e7b0
add eax, edi
lea esi, [ebx + 2]
mov edx, ebp
mov dword [esp + 0x20], eax
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x18]
lea esi, [ebx + 3]
mov edx, ebp
call fcn.1002e7b0
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
push edi
add esi, eax
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0xe0]
push edx
mov eax, edi
call fcn.1002fdb0
add ebx, 4
add esp, 0x18
mov dword [esp + 0x3e44], esi
cmp ebx, dword [esp + 0x14]
jb 0x10030d41
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ecx, ebp
call fcn.1002e6a0
cmp dl, 0x1f
sete cl
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
test eax, eax
jbe 0x10030fcc
mov dword [esp + 0x28], 4
mov dword [esp + 0x38], 3
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 1
jmp 0x10030e3a
mov cl, byte [esp + 0x13]
mov esi, dword [esp + 0x30]
mov edx, ebp
test cl, cl
je 0x10030ede
call fcn.1002e7b0
add eax, dword [esp + 0x3e44]
mov esi, dword [esp + 0x44]
mov edx, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call fcn.1002e7b0
mov esi, dword [esp + 0x40]
mov ebx, eax
add ebx, dword [esp + 0x20]
mov edx, ebp
call fcn.1002e7b0
mov esi, dword [esp + 0x38]
add eax, edi
mov edx, ebp
mov dword [esp + 0x18], eax
call fcn.1002e7b0
mov edi, eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
add edi, dword [esp + 0x18]
cmp eax, 5
jne 0x10030ece
mov esi, dword [esp + 0x28]
mov edx, ebp
call fcn.1002e7b0
mov esi, eax
mov eax, 1
add dword [esp + 0x30], eax
add dword [esp + 0x44], eax
add dword [esp + 0x40], eax
add dword [esp + 0x38], eax
add esi, ebx
add dword [esp + 0x28], eax
mov byte [esp + 0x13], 0
jmp 0x10030f74
mov dword [esp + 0x48], ebx
mov esi, ebx
mov byte [esp + 0x13], 0
jmp 0x10030f74
mov ecx, dword [esp + 0x3e44]
mov dword [esp + 0x20], ecx
call fcn.1002e7b0
mov esi, dword [esp + 0x44]
add eax, edi
mov edx, ebp
mov dword [esp + 0x24], eax
call fcn.1002e7b0
mov esi, dword [esp + 0x40]
mov ebx, eax
add ebx, dword [esp + 0x3e44]
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov edx, ebp
mov dword [esp + 0x18], eax
call fcn.1002e7b0
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0x30]
add eax, ebx
mov dword [esp + 0x48], eax
cmp edx, 5
jne 0x10030f67
mov esi, dword [esp + 0x28]
mov edx, ebp
call fcn.1002e7b0
mov edi, eax
add edi, dword [esp + 0x18]
mov eax, 1
add dword [esp + 0x30], eax
add dword [esp + 0x44], eax
add dword [esp + 0x40], eax
add dword [esp + 0x38], eax
add esi, eax
mov dword [esp + 0x28], esi
jmp 0x10030f6b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xe0]
push edx
call fcn.1002fdb0
mov eax, dword [esp + 0x48]
mov ecx, 4
add dword [esp + 0x5c], ecx
add dword [esp + 0x58], ecx
add dword [esp + 0x50], ecx
add dword [esp + 0x40], ecx
add eax, ecx
add esp, 0x18
mov dword [esp + 0x3e44], esi
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x14]
jb 0x10030e36
mov dword [esp + 0x3e48], edi
mov eax, ebp
call fcn.1002e800
mov ebx, dword [esp + 0x1c]
jmp 0x100304b3
mov ebx, dword [esp + 0x1c]
mov edx, ebx
call fcn.1002e600
shl eax, 8
movsx esi, ax
call fcn.1002e600
cwde
or eax, esi
push eax
mov edx, ebp
call fcn.1002e6b0
add esp, 4
jmp 0x100304b3
cmp dl, 0xf6
ja 0x10031020
add esi, 0xffffff75
push esi
mov edx, ebp
call fcn.1002e6b0
add esp, 4
jmp 0x100304b3
cmp dl, 0xfa
ja 0x10031046
mov edx, ebx
call fcn.1002e600
shl esi, 8
lea esi, [eax + esi - 0xf694]
push esi
mov edx, ebp
call fcn.1002e6b0
add esp, 4
jmp 0x100304b3
cmp dl, 0xfe
mov edx, ebx
ja 0x1003106e
call fcn.1002e600
shl esi, 8
mov ecx, 0xfa94
sub ecx, esi
sub ecx, eax
push ecx
mov edx, ebp
call fcn.1002e6b0
add esp, 4
jmp 0x100304b3
call fcn.1002e600
shl eax, 8
mov edx, ebx
mov dword [esp + 0x14], eax
call fcn.1002e600
mov esi, eax
or esi, dword [esp + 0x14]
shl esi, 8
call fcn.1002e600
or eax, esi
shl eax, 8
mov dword [esp + 0x14], eax
call fcn.1002e600
or eax, dword [esp + 0x14]
mov edx, ebp
push eax
call fcn.1002e6e0
add esp, 4
jmp 0x100304b3
mov dword [esp + 0x2c], 0x12
jmp 0x100311f5
mov ecx, ebp
call fcn.1002e6a0
cmp eax, 1
je 0x100310d4
call fcn.1002e6a0
cmp eax, 5
jne 0x100310ee
cmp byte [esp + 0x12], 0
jne 0x100310ee
xor esi, esi
mov edx, ebp
call fcn.1002e7b0
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x84]
cmp byte [eax + 0x2f1], 0
jne 0x100311f5
lea eax, [esp + 0xcc]
call fcn.1002ffa0
mov ecx, ebp
call fcn.1002e6a0
cmp eax, 1
jbe 0x100311f5
cmp byte [esp + 0x3e40], 0
jne 0x100310b1
mov edx, ebp
call fcn.1002e710
mov edi, eax
call fcn.1002e710
mov esi, eax
call fcn.1002e750
mov dword [esp + 0x3e48], eax
call fcn.1002e750
mov ebx, dword [esp + 0x5c]
push edi
lea edi, [esp + 0x3df4]
mov dword [esp + 0x3e48], eax
call fcn.1002d580
add esp, 4
test eax, eax
je 0x10031174
mov dword [esp + 0x2c], eax
jmp 0x100311f5
mov edx, dword [esp + 0x3e48]
mov eax, dword [esp + 0x3e44]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
push 1
push ecx
mov ecx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x3e08]
push eax
push ecx
call fcn.10030330
lea eax, [esp + 0x3e10]
mov edx, ebx
call fcn.1002d5e0
push esi
lea edi, [esp + 0x3e14]
call fcn.1002d580
add esp, 0x24
test eax, eax
jne 0x1003116b
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x58]
push edx
push eax
push eax
mov eax, dword [esp + 0x70]
push 1
push eax
mov eax, dword [esp + 0x48]
push ecx
mov edx, edi
push edx
push eax
call fcn.10030330
add esp, 0x20
mov eax, edi
mov edx, ebx
call fcn.1002d5e0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
call fcn.1002cfa0
lea eax, [esp + 0xcc]
call fcn.1002dc30
lea esi, [esp + 0x6c]
call fcn.1002cf50
lea esi, [esp + 0x8c]
call fcn.1002cf50
lea esi, [esp + 0xac]
call fcn.1002cf50
mov eax, ebp
call fcn.1002e680
mov ecx, dword [esp + 0x3e28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006249d
add esp, 0x3e1c
ret