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

Disassembly:
sub esp, 0x3bc
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00422e0e
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x433837
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x433830
mov ecx, ebp
call fcn.00430dfe
mov dword [esp + 0x18], eax
test eax, eax
je 0x433830
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0x14], esi
cmp ebp, 1
jbe 0x4335a9
lea ecx, [esp + 0x48]
call fcn.0042282b
test al, al
je 0x4335a9
test ebp, ebp
je 0x4335a9
add edi, 0xf
push 0x14
lea eax, [esp + 0x5c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x4335a1
inc esi
add edi, 0x1db
cmp esi, ebp
jb 0x43357d
mov esi, ebx
jmp 0x4335a5
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x10]
push ebx
push 0xcc
xor dl, dl
lea ecx, [esp + 0x74]
call fcn.0040c1b4
lea eax, [ebp*2]
mov byte [esp + 0x6d], 4
lea ecx, [eax + eax]
mov eax, ebx
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x43381a
add eax, esi
xor edx, edx
div ebp
xor eax, eax
push 6
mov word [esp + 0x30], ax
pop ecx
mov esi, edx
imul esi, esi, 0x1db
add esi, edi
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx ecx, word [esi + 0x27]
mov dword [esp + 0x24], edx
test cx, cx
jne 0x43362a
cmp word [esi + 0x39], bx
jne 0x43362a
mov edi, dword [esp + 0x18]
cmp byte [edx + edi], bl
jne 0x4337b1
lea ecx, [esi + 0xf]
mov byte [edx + edi], 1
call fcn.00433227
jmp 0x4337b1
mov eax, dword [esp + 0x1c]
xor edx, edx
lea edi, [ebp*2]
div edi
cmp edx, ebp
jae 0x433669
test cx, cx
je 0x4337b1
push 2
pop eax
mov word [esp + 0x2c], ax
mov ax, word [esi + 0x27]
movzx ecx, byte [esi + 0x28]
shl ax, 8
or cx, ax
lea eax, [esi + 0x23]
push 4
push eax
lea eax, [esp + 0x38]
jmp 0x433694
cmp word [esi + 0x39], bx
je 0x4337b1
push 0x17
pop eax
mov word [esp + 0x2c], ax
mov ax, word [esi + 0x39]
movzx ecx, byte [esi + 0x3a]
shl ax, 8
or cx, ax
lea eax, [esi + 0x29]
push 0x10
push eax
lea eax, [esp + 0x3c]
push eax
mov word [esp + 0x3a], cx
call dword [sym.imp.msvcrt.dll_memcpy]
movzx ecx, word [esp + 0x38]
add esp, 0xc
push 1
call fcn.00417333
movzx eax, al
push eax
lea ecx, [esp + 0xa0]
call fcn.0041471c
mov ecx, dword [esp + 0x28]
push 3
push dword [ecx]
lea eax, [esi + 0xf]
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x2c], eax
call fcn.0041478d
lea eax, [esp + 0x2c]
push dword [esp + 0x3d4]
lea ecx, [esp + 0x9c]
push 0x3a98
push eax
call fcn.004173f9
test al, al
je 0x433744
push dword [esp + 0x3d4]
mov edi, 0x7530
push edi
push 0x2c
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xa8]
call fcn.004177b1
test al, al
je 0x433744
push dword [esp + 0x3d4]
mov ecx, dword [esp + 0x3d4]
push edi
mov eax, dword [ecx]
lea edx, [esp + 0xa0]
push edx
call dword [eax + 4]
test al, al
jne 0x4337d5
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp byte [esi + edi], bl
jne 0x4337a5
call fcn.00414996
test al, al
je 0x4337a5
mov byte [esi + edi], 1
mov esi, dword [esp + 0x20]
mov dl, 1
mov ecx, esi
call fcn.004332d6
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], ebx
call fcn.0042282b
test al, al
je 0x43379c
push 0x14
lea eax, [esp + 0x5c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x43379c
push ebx
push 0x66
xor edx, edx
pop ecx
call fcn.00422443
lea ecx, [esp + 0x20]
call fcn.0042231f
lea ecx, [esp + 0x98]
call fcn.0041476b
mov eax, dword [esp + 0x1c]
lea edx, [ebp*2]
inc eax
lea ecx, [edx + edx]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jae 0x43381a
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x4335d7
add esi, 0xf
xor dl, dl
mov ecx, esi
call fcn.004332d6
push 0x24
lea eax, [esp + 0x4c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
lea eax, [esp + 0x58]
push 0x14
push esi
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.0042287b
lea ecx, [esp + 0x98]
mov bl, 1
call fcn.0041476b
mov ecx, dword [esp + 0x10]
call fcn.00430e28
mov ecx, dword [esp + 0x18]
call fcn.00430e28
mov al, bl
jmp 0x433839
mov ecx, edi
call fcn.00430e28
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3bc
ret 8