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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x48
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x10043a26
lea eax, [ebx + 1]
pop ebx
add esp, 0x48
ret
fldz
push esi
mov esi, dword [esp + 0x54]
fstp dword [eax]
cmp esi, ebx
jne 0x10043a3e
pop esi
mov eax, 1
pop ebx
add esp, 0x48
ret
cmp dword [esp + 0x5c], ebx
jne 0x10043a4c
mov dword [esp + 0x5c], 0x46
push edi
mov edi, dword [esp + 0x64]
cmp edi, ebx
jge 0x10043a57
xor edi, edi
mov eax, dword [str.x__oo_x_oOo_x__o__x_____xxxxxx]
push ebx
push 6
push 5
push eax
call sym.leptonlib.dll_selCreateFromString
mov ecx, dword [str._oo__x_oOo_x__o__x_____xxxxxxx]
push ebx
push 6
push 5
push ecx
mov dword [esp + 0x50], eax
call sym.leptonlib.dll_selCreateFromString
mov edx, dword [str.xxxxxxx_____x__o__x_oOo_x__oo]
push ebx
push 6
push 5
push edx
mov dword [esp + 0x64], eax
call sym.leptonlib.dll_selCreateFromString
push ebx
push 6
mov dword [esp + 0x70], eax
mov eax, dword [str.xxxxxx_____x__o__x_oOo_x_oo__x]
push 5
push eax
call sym.leptonlib.dll_selCreateFromString
add esp, 0x40
push ebx
push str.c1.8__c30.1
push esi
mov dword [esp + 0x48], eax
call sym.leptonlib.dll_pixMorphCompSequence
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jle 0x10043ba0
push ebp
push ebx
push str.o10.1
push eax
call sym.leptonlib.dll_pixMorphSequence
push 8
push ebx
push eax
mov dword [esp + 0x28], eax
call sym.leptonlib.dll_pixConnComp
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], eax
call sym.leptonlib.dll_pixCreateTemplate
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x34], eax
call sym.leptonlib.dll_pixDestroy
mov eax, dword [esp + 0x3c]
push eax
call sym.leptonlib.dll_boxaGetCount
mov ebp, eax
add esp, 0x24
cmp ebp, ebx
jle 0x10043b8e
lea esi, [edi + edi]
mov ecx, dword [esp + 0x1c]
push 2
push ebx
push ecx
call sym.leptonlib.dll_boxaGetBox
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x64]
push ecx
push eax
mov dword [esp + 0x70], eax
call sym.leptonlib.dll_boxGetGeometry
mov eax, dword [esp + 0x50]
add esp, 0x20
cmp eax, esi
jle 0x10043b7c
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
push 0
push 0
push 0
push 0x1e
add edx, 0xd
push edx
mov edx, dword [esp + 0x28]
sub eax, esi
push eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffffa
push eax
add ecx, edi
push ecx
push edx
call sym.leptonlib.dll_pixRasterop
add esp, 0x24
lea eax, [esp + 0x50]
push eax
call sym.leptonlib.dll_boxDestroy
inc ebx
add esp, 4
cmp ebx, ebp
jl 0x10043b17
lea ecx, [esp + 0x1c]
push ecx
call sym.leptonlib.dll_boxaDestroy
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebp
mov edx, dword [esp + 0x30]
push edx
push eax
push 0
call sym.leptonlib.dll_pixHMT
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push 0
call sym.leptonlib.dll_pixHMT
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
push eax
push eax
call sym.leptonlib.dll_pixOr
mov eax, dword [esp + 0x34]
add esp, 0x24
test eax, eax
je 0x10043bec
push eax
mov eax, dword [esp + 0x10]
push eax
push eax
call sym.leptonlib.dll_pixAnd
add esp, 0xc
mov edx, dword [esp + 0xc]
push 0
push 0
push 1
push 1
push edx
call sym.leptonlib.dll_pixReduceRankBinaryCascade
push 0
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixCountPixels
mov esi, dword [esp + 0x88]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x78]
push esi
push edx
push str.junkpixup
mov eax, edi
call fcn.100439a0
lea eax, [esp + 0x38]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x4c]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x54]
push edx
call sym.leptonlib.dll_pixDestroy
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push 0
call sym.leptonlib.dll_pixHMT
mov edx, dword [esp + 0x80]
add esp, 0x44
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
call sym.leptonlib.dll_pixHMT
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
push eax
call sym.leptonlib.dll_pixOr
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x10043ca0
push eax
mov eax, dword [esp + 0x10]
push eax
push eax
call sym.leptonlib.dll_pixAnd
add esp, 0xc
mov ecx, dword [esp + 0xc]
push 0
push 0
push 1
push 1
push ecx
call sym.leptonlib.dll_pixReduceRankBinaryCascade
push 0
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_pixCountPixels
mov eax, dword [esp + 0x2c]
push esi
push eax
push str.junkpixdown
mov eax, edi
call fcn.100439a0
lea ecx, [esp + 0x38]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x54]
push eax
call sym.leptonlib.dll_pixDestroy
fild dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
fstp dword [esp + 0x64]
add esp, 0x38
cmp eax, ecx
fild dword [esp + 0x28]
fstp dword [esp + 0x18]
jg 0x10043d14
mov eax, ecx
cmp eax, dword [esp + 0x60]
fld dword [esp + 0x2c]
fld dword [esp + 0x18]
jle 0x10043d3f
fld st(1)
fsub st(1)
fstp qword [esp + 0x4c]
faddp st(1)
call sub.MSVCR90.dll__CIsqrt
fdivr qword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
fadd st(0), st(0)
fstp dword [ebx]
jmp 0x10043d47
mov ebx, dword [esp + 0x5c]
fstp st(1)
fstp st(0)
test esi, esi
je 0x10043dd9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10043d67
push 3
push eax
push str.junkpixm1
call sym.leptonlib.dll_pixWrite
add esp, 0xc
fld dword [ebx]
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
sub esp, 0x18
fstp qword [esp + 0x10]
fld dword [esp + 0x30]
fstp qword [esp + 8]
fld dword [esp + 0x44]
fstp qword [esp]
push 0x101448f0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call edi
fld dword [ebx]
fcomp qword [0x101448e8]
add esp, 0x20
fnstsw ax
test ah, 0x41
jne 0x10043dba
push str.Text_is_rightside_up_n
call esi
add eax, 0x40
push eax
call edi
add esp, 8
fld dword [ebx]
fcomp qword [0x101448e0]
fnstsw ax
test ah, 5
jp 0x10043dd9
push str.Text_is_upside_down_n
call esi
add eax, 0x40
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call sym.leptonlib.dll_pixDestroy
lea edx, [esp + 0x14]
push edx
call sym.leptonlib.dll_pixDestroy
lea eax, [esp + 0x38]
push eax
call sym.leptonlib.dll_selDestroy
lea ecx, [esp + 0x40]
push ecx
call sym.leptonlib.dll_selDestroy
lea edx, [esp + 0x48]
push edx
call sym.leptonlib.dll_selDestroy
lea eax, [esp + 0x50]
push eax
call sym.leptonlib.dll_selDestroy
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret