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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, edx
lea edx, [eax - 2]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], edx
cmp ebx, esi
je 0x10043871
cmp eax, esi
je 0x10043871
cmp ecx, esi
je 0x10043871
cmp dword [ebp + 0xc], esi
jge 0x10042e90
lea eax, [esi - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp eax, 0x50435245
je 0x10042ebd
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xc]
test cl, 2
jne 0x10042edf
mov eax, 0xffffffe4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
movzx edi, word [ebx + 0x22]
mov edx, eax
shr edx, 0xb
and edx, 1
mov dword [esp + 0xb0], edx
lea edx, [ebx + edi*2]
mov dword [esp + 0x90], edx
movzx edx, word [ebx + 0x26]
mov dword [esp + 0x80], edx
movzx edx, word [ebx + 0x24]
mov dword [esp + 0xec], esi
mov dword [esp + 0x10c], esi
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x84], edx
mov dword [esp + 0x64], 0x989680
mov dword [esp + 0x68], 0x989680
test ecx, 0x2000
je 0x10042f51
mov ebx, dword [ebx + 0x10]
cmp ebx, 0x989680
jae 0x10042f4d
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x10]
test ecx, 0x4000
je 0x10042f68
mov ebx, dword [ebx + 0x14]
cmp ebx, 0x989680
jae 0x10042f68
mov dword [esp + 0x68], ebx
test esi, esi
jne 0x10042f71
mov esi, 0x10055ac8
mov ebx, eax
shr ebx, 4
and ebx, 1
mov dword [esp + 0x50], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 1
mov dword [esp + 0x58], ebx
mov ebx, eax
shr ebx, 0x12
and ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + 0x26]
imul edx, ebx
mov ebx, dword [ebp + 0xc]
add edx, edi
mov edi, dword [esp + 0x10]
lea edx, [edi + edx*2]
mov edi, dword [esp + 0x38]
mov dword [esp + 0xd8], edi
lea edi, [edi + ebx*2]
mov dword [esp + 0xdc], edi
mov dword [esp + 0x28], edi
mov edi, eax
shr edi, 5
and edi, 1
mov dword [esp + 0xbc], edi
mov edi, eax
shr edi, 0x1d
and edi, 1
shr ecx, 0xc
mov dword [esp + 0xb8], edi
and ecx, 1
mov edi, eax
shr edi, 0x19
mov dword [esp + 0xd0], ecx
lea ecx, [esi + 0x100]
mov dword [esp + 0xd4], edx
xor edx, edx
and edi, 1
mov dword [esp + 0x9c], esi
add esi, 0x340
mov dword [esp + 0xf8], edx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x114], edx
mov dword [esp + 0x110], edx
mov dword [esp + 0x108], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], esi
test eax, 0x1800000
je 0x1004307e
mov edx, eax
shr edx, 0x17
and edx, 1
and eax, 0x700000
mov dword [esp + 0xcc], edx
cmp eax, 0x300000
ja 0x100430ef
je 0x100430e8
test eax, eax
je 0x100430a5
cmp eax, 0x100000
je 0x100430e1
cmp eax, 0x200000
jne 0x100430fd
mov eax, 0xa
mov dword [esp + 0x78], 0
cmp eax, 0xff
jle 0x1004312b
mov ecx, eax
sar ecx, 8
movzx edx, al
and ecx, 0xff
mov dword [esp + 0x7c], 2
mov word [esp + 0x94], cx
mov word [esp + 0x96], dx
jmp 0x1004313b
mov eax, 0xd
jmp 0x100430aa
mov eax, 0xd0a
jmp 0x100430aa
cmp eax, 0x400000
je 0x10043121
cmp eax, 0x500000
je 0x10043117
mov eax, 0xffffffe9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x78], 2
jmp 0x1004313b
mov dword [esp + 0x78], 1
jmp 0x1004313b
mov dword [esp + 0x7c], 1
mov word [esp + 0x94], ax
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [eax + eax*2]
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x100431c4
mov ecx, eax
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x100431c4
lea esi, [ecx + ecx*2 + 3]
lea ecx, [esi*4]
push ecx
call dword [0x100695e4]
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
test edi, edi
jne 0x100431ba
lea eax, [edi - 6]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x40], 1
jmp 0x100431cc
mov edi, dword [esp + 0x20]
mov dword [esp + 0x6c], edi
mov ebx, dword [esp + 0xdc]
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0xf4], 0
test edi, edi
je 0x10043249
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + 0x1e]
add edx, edx
lea eax, [edi + esi*4]
add edx, edx
mov ecx, eax
sub ecx, edx
lea edx, [edi + 8]
cmp ecx, edx
jae 0x10043217
mov ecx, edx
sub eax, 4
cmp eax, ecx
jb 0x10043231
mov edi, edi
mov dword [eax], 0xffffffff
sub eax, 4
cmp eax, ecx
jae 0x10043220
mov edi, dword [esp + 0x6c]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x6c]
mov dword [eax], 0xffffffff
mov ebx, dword [esp + 0xdc]
cmp dword [esp + 0x50], 0
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
jne 0x10043298
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x10043298
movzx ecx, word [edx + 0x18]
movzx edi, cx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
test al, 0x20
je 0x1004329c
mov eax, 0xff
cmp cx, ax
ja 0x1004329c
mov eax, dword [esp + 0xa0]
movzx ecx, cx
movzx ecx, byte [ecx + eax]
mov dword [esp + 0x24], ecx
jmp 0x1004329c
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x100432da
movzx edx, word [edx + 0x1a]
movzx edi, dx
mov dword [esp + 0x54], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
test al, al
jns 0x100432da
mov eax, 0xff
cmp dx, ax
ja 0x100432da
mov eax, dword [esp + 0xa0]
movzx edx, dx
movzx eax, byte [edx + eax]
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x44], 0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
je 0x10043368
mov ecx, edi
cmp edi, ebx
jae 0x1004335a
cmp dword [esp + 0x78], 0
je 0x10043328
mov edx, dword [esp + 0x78]
push edx
lea esi, [esp + 0x80]
mov edx, ebx
call fcn.10043970
mov esi, dword [esp + 0x80]
add esp, 4
test eax, eax
jne 0x1004335a
mov ebx, dword [esp + 0xdc]
jmp 0x10043353
lea eax, [esi + esi]
mov edx, ebx
sub edx, eax
cmp ecx, edx
ja 0x10043353
mov ax, word [esp + 0x94]
cmp word [ecx], ax
jne 0x10043353
cmp esi, 1
je 0x1004335a
mov dx, word [esp + 0x96]
cmp word [ecx + 2], dx
je 0x1004335a
add ecx, 2
cmp ecx, ebx
jb 0x100432f7
mov eax, dword [esp + 0x1c]
mov edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 8]
and ebx, 0x4000000
jne 0x10043490
cmp dword [esp + 0x3c], ebx
je 0x100433d5
cmp ax, cx
je 0x100433b3
cmp edi, edx
jae 0x10043490
mov esi, dword [esp + 0x1c]
movzx eax, word [edi]
cmp ax, si
je 0x10043490
cmp ax, cx
je 0x10043490
add edi, 2
cmp edi, edx
jb 0x10043392
jmp 0x10043490
cmp edi, edx
jae 0x10043490
jmp 0x100433c0
cmp word [edi], ax
je 0x10043490
add edi, 2
cmp edi, edx
jb 0x100433c0
jmp 0x10043490
cmp dword [esp + 0x58], 0
je 0x10043490
cmp edi, dword [esp + 0xd8]
jbe 0x10043490
cmp edi, edx
jae 0x10043467
cmp dword [esp + 0x78], 0
je 0x1004342c
cmp edi, dword [esp + 0xd8]
jbe 0x10043460
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xd8]
push eax
lea esi, [esp + 0x80]
mov ecx, edi
call fcn.10043a00
mov edx, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x10043467
mov esi, dword [esp + 0x7c]
jmp 0x10043460
mov eax, dword [esp + 0xd8]
lea ecx, [esi + esi]
add eax, ecx
cmp edi, eax
jb 0x10043460
mov eax, edi
sub eax, ecx
mov cx, word [esp + 0x94]
cmp word [eax], cx
jne 0x10043460
cmp esi, 1
je 0x10043467
mov cx, word [esp + 0x96]
cmp word [eax + 2], cx
je 0x10043467
add edi, 2
cmp edi, edx
jb 0x100433f1
cmp word [edi - 2], 0xd
jne 0x10043490
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x1004347c
cmp eax, 2
jne 0x10043490
cmp edi, edx
jae 0x10043490
cmp word [edi], 0xa
jne 0x10043490
add edi, 2
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
test ebx, ebx
jne 0x1004354f
cmp dword [esp + 0xec], ebx
jne 0x1004354f
cmp dword [esp + 0x54], ebx
je 0x1004354f
mov eax, edx
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x1004354f
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
setne cl
lea eax, [edi + ecx*2]
cmp eax, dword [esp + 0x4c]
jbe 0x1004354f
mov dx, word [esp + 0x2c]
cmp word [esp + 0x30], dx
je 0x1004351a
cmp eax, dword [esp + 0x14]
jae 0x1004350d
movzx edx, word [esp + 0x30]
mov esi, dword [esp + 0x14]
movzx ecx, word [eax]
add eax, 2
cmp ecx, edx
je 0x10043544
movzx ebx, word [esp + 0x2c]
cmp ecx, ebx
je 0x10043544
cmp eax, esi
jb 0x100434f6
mov dword [esp + 0x18], 0
jmp 0x10043705
cmp eax, dword [esp + 0x14]
jae 0x1004350d
mov cx, word [eax]
add eax, 2
cmp cx, word [esp + 0x30]
je 0x10043540
cmp eax, dword [esp + 0x14]
jb 0x10043520
mov dword [esp + 0x18], 0
jmp 0x10043705
mov esi, dword [esp + 0x14]
sub eax, 2
cmp eax, esi
jae 0x1004350d
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd4]
xor esi, esi
push esi
push esi
lea edx, [esp + 0x68]
push edx
push 2
push edi
push eax
push edi
mov dword [esp + 0xfc], edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x10c], esi
mov dword [esp + 0xa4], esi
call fcn.1003e1f0
add esp, 0x1c
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xc8], esi
je 0x100435b7
cmp dword [esp + 0x34], esi
jne 0x100435b7
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x5c], edi
cmp ecx, esi
jg case.default.0x100435d0
je case.0x100435d0.995
lea eax, [ecx + 0x3e4]
cmp eax, 4
ja case.default.0x100435d0
jmp dword [eax*4 + 0x1004388c]
mov eax, dword [esp + 0x88]
mov ebx, edi
mov dword [esp + 0x8c], eax
jmp 0x10043602
mov eax, dword [esp + 0xe0]
cmp eax, edi
jbe case.0x100435d0.995
mov ebx, eax
jmp 0x10043602
mov dword [esp + 0x8c], esi
lea ebx, [edi + 2]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x44], esi
je 0x1004367e
cmp dword [esp + 0x78], esi
je 0x10043642
cmp edi, dword [esp + 0xdc]
jae 0x1004367e
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0xdc]
push ecx
lea esi, [esp + 0x80]
mov ecx, edi
call fcn.10043970
add esp, 4
test eax, eax
jne 0x10043705
jmp 0x1004367e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xdc]
lea edx, [eax + eax]
sub ecx, edx
cmp edi, ecx
ja 0x1004367e
mov dx, word [edi]
cmp dx, word [esp + 0x94]
jne 0x1004367e
cmp eax, 1
je 0x10043705
mov ax, word [edi + 2]
cmp ax, word [esp + 0x96]
je 0x10043705
cmp dword [esp + 0x50], 0
mov edi, ebx
jne 0x10043705
mov eax, dword [esp + 0x14]
cmp ebx, eax
ja 0x10043705
cmp ebx, dword [esp + 0x38]
jbe 0x100436cb
cmp word [ebx - 2], 0xd
jne 0x100436cb
cmp ebx, eax
jae 0x100436cb
cmp word [ebx], 0xa
jne 0x100436cb
mov ecx, dword [esp + 0x10]
test dword [ecx + 0xc], 0x800
jne 0x100436cb
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x100436c8
cmp eax, 2
je 0x100436c8
cmp dword [esp + 0x7c], 2
jne 0x100436cb
lea edi, [ebx + 2]
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x110], 0
jmp 0x100432de
mov dword [esp + 0x18], esi
jmp 0x10043705
cmp ecx, 1
je 0x1004378b
cmp ecx, 0xfffffc19
je 0x10043789
cmp dword [esp + 0x40], 0
je 0x1004371a
mov edx, dword [esp + 0x6c]
push edx
call dword [0x100695e8]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004372b
cmp eax, 0xfffffff4
jne 0x10043876
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10043771
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
mov dword [edx], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov dword [edx + 4], eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [edx + 8], eax
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
xor esi, esi
mov edi, dword [esp + 0x48]
mov ebx, 0x10000
cmp dword [esp + 0x40], esi
je 0x100437d9
mov esi, dword [esp + 0x6c]
cmp edi, 4
jl 0x100437bf
mov edx, dword [esp + 0x20]
lea eax, [edi*4 - 8]
push eax
lea ecx, [esi + 8]
push ecx
add edx, 8
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0xf0], edi
jle 0x100437cf
or dword [esp + 0xf4], ebx
push esi
call dword [0x100695e8]
add esp, 4
mov esi, dword [esp + 0xf0]
test dword [esp + 0xf4], ebx
je 0x100437f1
cmp esi, edi
jl 0x100437f1
xor ebx, ebx
jmp 0x100437fa
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0x1e]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jg 0x10043834
lea eax, [ecx + ecx + 2]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jle 0x1004381a
mov eax, ecx
mov ecx, dword [esp + 0x20]
lea edi, [ecx + esi*4]
lea ecx, [ecx + eax*4]
cmp edi, ecx
jae 0x10043834
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0x20]
sub edx, eax
sar edx, 1
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
sub edx, eax
sar edx, 1
mov dword [ecx + 4], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret