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

Disassembly:
sub esp, 0x254
mov eax, dword [esp + 0x25c]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x64]
push eax
push ecx
mov dword [esp + 0x28], ebp
call fcn.00452da6
mov ecx, dword [0x470f08]
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x64]
push edx
push eax
mov dword [esp + 0x18], 1
call fcn.00409200
mov ebx, eax
test ebx, ebx
jne 0x423413
push eax
push 0x8000000
push 3
push eax
push eax
lea ecx, [esp + 0x78]
push 0x80000000
push ecx
mov dword [esp + 0x2c], eax
call dword [0x4600f8]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4233cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret 8
push 0
push esi
call dword [0x4600f4]
mov edi, eax
push edi
call fcn.00452905
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4233fc
push esi
call dword [0x4600e0]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret 8
lea edx, [esp + 0x18]
push 0
push edx
push edi
push ebx
push esi
call dword [0x4600f0]
push esi
call dword [0x4600e0]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
push ebx
call fcn.00428144
test eax, eax
jge 0x42343f
push ebx
call fcn.004528fa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 8
mov di, word [ebp + 0xae4]
mov word [ebp + 0xd96], 0x20
mov edx, dword [0x4688b0]
mov esi, dword [0x4688b4]
mov ax, word [ebp + 0xd96]
cmp di, ax
jg 0x423470
cmp word [ebp + 0xae6], ax
jle 0x4234a8
movsx ecx, ax
cmp ecx, edx
jae 0x4234a8
cmp ecx, esi
jae 0x4234a8
add eax, eax
mov word [ebp + 0xd96], ax
mov edx, dword [0x4688b0]
mov esi, dword [0x4688b4]
movsx eax, ax
cmp eax, edx
ja 0x42349b
cmp eax, esi
jbe 0x42345b
cmp edx, esi
jb 0x4234a1
mov edx, esi
mov word [ebp + 0xd96], dx
lea ecx, [esp + 0x14]
mov eax, dword [0x4711a8]
push ecx
mov ecx, dword [ebp + 0xd98]
push ecx
mov edx, dword [eax]
movsx ecx, word [ebp + 0xae6]
push ecx
movsx ecx, di
push ecx
push eax
call dword [edx + 0x6c]
test eax, eax
jge 0x4234e7
push ebx
call fcn.004528fa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push 0
push 1
push 0
push edx
push ebx
push 0
push 0
push eax
call fcn.0042874a
mov eax, dword [esp + 0x10]
push ebx
test eax, eax
je 0x423519
mov ecx, dword [0x470f08]
call fcn.004094f0
jmp 0x423521
call fcn.004528fa
add esp, 4
movsx eax, word [ebp + 0xae4]
movsx ecx, word [ebp + 0xd96]
cdq
idiv ecx
mov esi, dword [esp + 0x268]
mov word [esi + 0x842], ax
movsx eax, word [ebp + 0xae6]
movsx ecx, word [ebp + 0xd96]
cdq
idiv ecx
mov word [esi + 0x844], ax
movsx eax, word [ebp + 0xae4]
movsx ecx, word [ebp + 0xd96]
cdq
idiv ecx
test edx, edx
je 0x423574
inc word [esi + 0x842]
movsx eax, word [ebp + 0xae6]
movsx ecx, word [ebp + 0xd96]
cdq
idiv ecx
test edx, edx
je 0x423590
inc word [esi + 0x844]
cmp word [esi + 0x844], 0
mov dword [esp + 0x10], 0
jle 0x4236ff
xor ebx, ebx
cmp word [esi + 0x842], bx
jle 0x4236e7
movsx edx, word [esi + 0x840]
movsx eax, word [ebp + 0xd96]
lea ecx, [esi + edx*4 + 0x800]
mov edx, dword [0x4711a8]
push ecx
push 1
push 0x15
push 0
push 1
push eax
push eax
push edx
call fcn.00428683
test eax, eax
jl 0x42371b
movsx eax, word [esi + 0x842]
mov cx, word [ebp + 0xd96]
dec eax
cmp ebx, eax
mov dword [esp + 0x1c], ecx
jne 0x423615
movsx eax, word [ebp + 0xae4]
movsx edi, cx
cdq
idiv edi
test edx, edx
je 0x423615
mov dword [esp + 0x1c], edx
movsx edx, word [esi + 0x844]
mov eax, dword [esp + 0x10]
dec edx
cmp eax, edx
mov edi, ecx
jne 0x42363e
movsx eax, word [ebp + 0xae6]
movsx ebp, cx
cdq
idiv ebp
test edx, edx
je 0x42363a
mov edi, edx
mov ebp, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
movsx eax, cx
mov ecx, eax
imul eax, dword [esp + 0x10]
movsx edx, word [esp + 0x1c]
imul ecx, ebx
movsx edi, di
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], eax
add edi, eax
mov dword [esp + 0x40], edx
movsx eax, word [esi + 0x840]
add edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov eax, dword [esi + eax*4 + 0x800]
lea edx, [esp + 0x24]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x2c]
push 1
push eax
mov eax, dword [esp + 0x30]
push 0
lea edx, [esp + 0x48]
push ecx
push edx
push 0
push eax
call fcn.00428802
test eax, eax
je 0x4236c6
push str.surface_to_surface_failed
call fcn.0040dcb0
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
movsx edx, word [esi + 0x842]
inc word [esi + 0x840]
inc ebx
cmp ebx, edx
jl 0x4235b5
mov eax, dword [esp + 0x10]
movsx ecx, word [esi + 0x844]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4235a6
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x254
ret 8
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret 8