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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9cc
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x9c8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x3ff
xor ebx, ebx
push edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x1d5]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x44], esi
mov byte [esp + 0x1dc], bl
call fcn.004b7880
add esp, 0xc
push edi
lea eax, [esp + 0x5d5]
push ebx
push eax
mov byte [esp + 0x5dc], bl
call fcn.004b7880
add esp, 0xc
xor eax, eax
lea edi, [esp + 0x4a]
push 0xff
mov word [esp + 0x4c], bx
stosw word es:[edi], ax
lea eax, [esp + 0xd5]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], 9
mov byte [esp + 0xdc], bl
call fcn.004b7880
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x30], ebx
jne 0x45ae09
xor eax, eax
jmp 0x45b962
mov ecx, dword [esp + 0x70]
call fcn.0045773e
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xa0], eax
push ebx
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xb0], ebx
call fcn.004412f9
pop ecx
push dword [esp + 0x70]
lea eax, [esp + 0x1d4]
push 0x3ff
push eax
call fcn.004416ea
add esp, 0xc
test eax, eax
je 0x45b92a
lea eax, [esi + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x68]
mov dword [esp + 0x24], eax
lea eax, [esi - 0x80]
mov dword [esp + 0x44], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esi - 0x2c]
mov dword [esp + 0x84], eax
lea eax, [esi + 0x64]
mov dword [esp + 0x50], eax
lea eax, [esi - 0x53]
mov dword [esp + 0x80], eax
lea eax, [esi + 0x3d]
mov dword [esp + 0x2c], eax
lea eax, [esi - 3]
mov dword [esp + 0x98], eax
lea eax, [esi + 0x8d]
mov dword [esp + 0xa8], eax
lea eax, [esi + 0x8c]
mov dword [esp + 0x88], eax
lea eax, [esi + 0x88]
mov dword [esp + 0x90], eax
lea eax, [esi - 0x28]
mov dword [esp + 0x9c], eax
lea eax, [esi + 0x62]
mov dword [esp + 0x5c], eax
lea eax, [esi + 0x3e]
mov dword [esp + 0x7c], eax
lea eax, [esi + 0x18]
mov dword [esp + 0x54], eax
lea eax, [esi + 0x14]
mov dword [esp + 0x4c], eax
lea eax, [esi + 0x40]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x46]
mov dword [esp + 0x94], eax
lea eax, [esi + 0x42]
mov dword [esp + 0x74], eax
lea eax, [esi + 0x3f]
mov dword [esp + 0x8c], eax
lea eax, [esi + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esi + 0x4c]
mov dword [esp + 0x78], eax
lea eax, [esi + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x4a]
mov dword [esp + 0x68], eax
lea eax, [esi - 0x84]
mov dword [esp + 0x6c], eax
lea eax, [esi + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x60], eax
mov edi, 0x90
push edi
push ebx
push dword [esp + 0x68]
call fcn.004b7880
mov eax, dword [esp + 0x6c]
add esp, 0xc
lea edx, [esp + 0x1d0]
mov dword [eax], edi
call fcn.0047ebaf
test eax, eax
jne 0x45b909
cmp byte [esp + 0x1d0], 0x3b
je 0x45b909
lea eax, [esp + 0x1d0]
push str.END_Invoice_Definition_Table
push eax
call fcn.004b6b90
test eax, eax
pop ecx
pop ecx
jne 0x45b92a
lea eax, [esp + 0x1d0]
push str.There_are_no_parts_matching_the_selection_criteria__please_try_again...
push eax
call fcn.004b6b90
test eax, eax
pop ecx
pop ecx
je 0x45afbd
mov dword [esp + 0xac], 1
jmp 0x45b909
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x5d4]
push eax
call fcn.004b6c20
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1dc]
mov dword [esp + 0xb0], ebx
call fcn.00480650
add esp, 0xc
cmp eax, ebx
je 0x45b909
push eax
call fcn.004b8944
cmp eax, ebx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jg 0x45b02b
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, word [esi]
push eax
push str.:9:ParseSybaseSA12__04d__02d__02d__EAP:_An_invalid_invoice_number_:__d
call fcn.0041936e
add esp, 0x14
jmp 0x45b909
cmp dword [esp + 0x28], ebx
jle 0x45b044
mov ecx, dword [esp + 0x6c]
cmp eax, dword [ecx]
jne 0x45b044
mov dword [esp + 0xa4], 1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
cmp eax, ebx
pop ecx
je 0x45b909
push eax
call fcn.004b8944
pop ecx
mov ecx, dword [esp + 0x68]
mov word [ecx], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
cmp eax, ebx
pop ecx
je 0x45b909
push eax
mov ecx, 0x100
lea eax, [esp + 0xd4]
call fcn.0047ebe1
pop ecx
call fcn.0047f679
lea eax, [esp + 0xd0]
push eax
mov eax, dword [esp + 0x38]
push 0x21
pop ecx
call fcn.0047ebe1
pop ecx
mov edx, eax
call fcn.0047ebaf
test eax, eax
je 0x45b0ce
mov eax, dword [esp + 0x34]
push str.Unknown_Account_Name
push 0x21
pop ecx
call fcn.0047ebe1
pop ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
cmp eax, ebx
pop ecx
je 0x45b909
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004a65f8
mov esi, eax
lea edi, [esp + 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
push ebx
mov ebx, dword [esp + 0x7c]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, ebx
movsd dword es:[edi], dword [esi]
call fcn.004a6a14
add esp, 0x14
call fcn.0045c0c0
mov ecx, dword [esp + 0x64]
sub esp, 0x10
lea esi, [esp + 0xc0]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
movsd dword es:[edi], dword [esi]
call fcn.004a5bcf
mov esi, eax
push esi
mov dword [esp + 0x54], esi
call fcn.004a5c28
add esp, 0x14
test eax, eax
je 0x45b903
push dword [esp + 0x48]
call fcn.004a5cf0
test eax, eax
pop ecx
jne 0x45b1a2
push dword [esp + 0x48]
push esi
call fcn.004a5d12
test eax, eax
pop ecx
pop ecx
jne 0x45b1a2
movzx eax, word [esp + 0x48]
push eax
movzx eax, byte [esp + 0x4f]
push eax
movzx eax, byte [esp + 0x52]
push eax
movzx eax, si
push eax
movzx eax, byte [esp + 0x53]
push eax
movzx eax, byte [esp + 0x56]
push eax
push str.:10:ParseSybaseSA12___has_encountered_invoices_with_different_dates______t_t_t_t__________An_invoice_was_found_dated__02d__02d__04d_and_another_one_dated__02d__02d__04d_____t_t_t_t__________Huge_PROBLEM___
call fcn.00418e96
add esp, 0x1c
mov eax, dword [esp + 0x38]
mov dword [eax], esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x4c], esi
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
push eax
call fcn.004b8944
pop ecx
mov ecx, dword [esp + 0x8c]
mov byte [ecx], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
mov edi, eax
test edi, edi
pop ecx
je 0x45b903
push edi
call fcn.004b8944
mov ebx, eax
mov eax, dword [esp + 0xa4]
pop ecx
call fcn.00471bce
test ax, ax
mov esi, dword [esp + 0x58]
mov word [esi], ax
jne 0x45b23a
push edi
call fcn.004b8944
inc dword [esp + 0x34]
cmp dword [esp + 0x34], 0x64
pop ecx
mov word [esi], ax
jge 0x45b23a
mov eax, dword [esp + 0x18]
push edi
push dword [eax]
push str.:9:ParseSybaseSA12___EAP:_The_employee_conversion_table_FAILED_for_Inv_06ld_counterManID_s__
call fcn.00418e96
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
mov edi, eax
test edi, edi
pop ecx
je 0x45b903
push edi
call fcn.004b8944
mov ebx, eax
mov eax, dword [esp + 0xa4]
pop ecx
call fcn.00471bce
test ax, ax
mov esi, dword [esp + 0x74]
mov word [esi], ax
jne 0x45b2a4
push edi
call fcn.004b8944
test ax, ax
pop ecx
mov word [esi], ax
je 0x45b2a4
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 0x64
jge 0x45b2a4
mov eax, dword [esp + 0x18]
push edi
push dword [eax]
push str.:9:ParseSybaseSA12___EAP:_The_employee_conversion_table_FAILED_for_Inv_06ld_SalesManID_s__
call fcn.00418e96
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [esp + 0x40], ebx
je 0x45b903
push ebx
call fcn.004b8944
test eax, eax
pop ecx
jle 0x45b328
mov esi, dword [esp + 0x58]
mov ax, word [esi]
mov edi, dword [esp + 0x94]
push ebx
mov word [edi], ax
call fcn.004b8944
mov ebx, eax
mov eax, dword [esp + 0xa4]
pop ecx
call fcn.00471bce
test ax, ax
mov word [esi], ax
jne 0x45b328
movzx eax, word [edi]
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 0x64
mov word [esi], ax
jge 0x45b328
movsx eax, ax
push eax
push dword [esp + 0x44]
mov eax, dword [esp + 0x20]
push dword [eax]
push str.:9:ParseSybaseSA12___EAP:_The_employee_conversion_table_FAILED_for_Inv_06ld_CashierID_s.__Falling_back_to_emp__d__
call fcn.00418e96
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
call fcn.004406c2
test eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [ecx], eax
jge 0x45b3d3
mov eax, dword [esp + 0x38]
movsx eax, word [eax + 0x2f58e]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax]
push str.:10:ParseSybaseSA12___encountered_a_CRITICAL_EXCEPTION__:_A_negative_ROA_discount_was_encountered:_Inv_ld____Employee__d.
call fcn.00418e96
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
call fcn.004406c2
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
call fcn.004406c2
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
test ecx, ecx
mov edx, dword [esp + 0x20]
mov dword [edx], eax
je 0x45b42f
sub eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [edx], eax
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
mov edi, eax
test edi, edi
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
mov ebx, eax
test ebx, ebx
pop ecx
je 0x45b903
mov esi, dword [esp + 0x7c]
push edi
mov byte [esi], 0
call fcn.004b8944
dec eax
pop ecx
je 0x45b499
dec eax
je 0x45b536
dec eax
je 0x45b496
push edi
call fcn.004b8944
pop ecx
push eax
push str.:10:ParseSybaseSA12___FAILED:_Invalid_invoice_type:__d
call fcn.00418e96
pop ecx
pop ecx
jmp 0x45b4c3
mov byte [esi], 1
push ebx
call fcn.004b8944
pop ecx
call fcn.0045b977
cmp al, 9
mov ecx, dword [esp + 0x2c]
mov byte [ecx], al
jne 0x45b4c3
push 0x144b
push str..ParseSA12.c
push 1
call fcn.00418867
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
je 0x45b903
push eax
mov edi, 0x100
mov ecx, edi
lea eax, [esp + 0xd4]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047f648
cmp byte [esp + 0xd0], 0x31
je 0x45b53f
movsx eax, byte [esp + 0xd0]
call fcn.0047ea32
cmp eax, 0x59
je 0x45b53f
mov eax, dword [esp + 0x5c]
mov byte [eax], 0
jmp 0x45b546
mov eax, dword [esp + 0x2c]
mov byte [eax], 9
jmp 0x45b4c3
mov eax, dword [esp + 0x5c]
mov byte [eax], 1
mov ebx, dword [esp + 0x50]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
mov byte [ebx], 0
call fcn.00480650
test eax, eax
pop ecx
je 0x45b5a0
push eax
mov ecx, edi
lea eax, [esp + 0xd4]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047f648
cmp byte [esp + 0xd0], 0x31
je 0x45b595
movsx eax, byte [esp + 0xd0]
call fcn.0047ea32
cmp eax, 0x59
jne 0x45b5a0
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov byte [ebx], cl
mov byte [eax], 0
cmp dword [esp + 0xa4], 0
jne 0x45b5b3
mov esi, dword [esp + 0x24]
and dword [esi], 0
jmp 0x45b5e1
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 4
jge 0x45b5cb
mov eax, dword [esp + 0x9c]
inc dword [eax]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x45b5dd
mov eax, dword [esp + 0x18]
push dword [eax]
push str.:8:ParseSybaseSA12___EAP:_Inv_d_overflowed:_Too_many_tender_types_defined_
call fcn.00418e96
pop ecx
pop ecx
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
call fcn.00480650
test eax, eax
pop ecx
jne 0x45b61e
mov eax, dword [esp + 0x18]
push dword [eax]
push str.:7:ParseSybaseSA12___EAP:_Inv_d_is_missing_tender_applied_amount_
call fcn.00418e96
mov eax, dword [esi]
add eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [edi + eax*4 + 0x74], ecx
jmp 0x45b633
call fcn.004406c2
mov ecx, dword [esi]
add ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edx + ecx*4 + 0x74], eax
mov edi, edx
mov ecx, dword [esi]
add ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dl, byte [eax]
mov ebx, dword [esp + 0xa8]
mov byte [ecx + edi + 0x6c], dl
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x90]
mov al, byte [eax]
mov dword [edx], ecx
mov ecx, dword [esp + 0x88]
mov byte [ecx], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
xor ecx, ecx
mov byte [ebx], 0
call fcn.00480650
mov edx, eax
pop ecx
mov dword [esp + 0x40], edx
call fcn.0047ebaf
test eax, eax
jne 0x45b6d0
and dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov al, byte [ecx]
test al, al
je 0x45b6b7
mov edx, ecx
call fcn.0047fc19
test eax, eax
je 0x45b6a4
inc dword [esp + 0x24]
inc edx
mov al, byte [edx]
test al, al
jne 0x45b697
cmp dword [esp + 0x24], 4
jl 0x45b6b7
mov byte [ebx], 1
jmp 0x45b6d0
lea eax, [esp + 0x5d0]
push eax
push dword [esp + 0x44]
push str.:8:UNKNOWN_SAFEPAY_TOKEN:__s:__s
call fcn.0041936e
add esp, 0xc
mov eax, dword [esi]
add eax, dword [esp + 0x1c]
cmp dword [esp + 0xa4], 0
mov cl, byte [ebx]
mov byte [eax + edi + 0x8e], cl
je 0x45b866
mov eax, dword [esi]
add eax, dword [esp + 0x1c]
add eax, edi
mov cl, byte [eax + 0x6c]
mov byte [eax - 0x24], cl
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [edi + eax*4 + 0x74]
mov dword [edi + eax*4 - 0x1c], ecx
mov eax, dword [esi]
add eax, dword [esp + 0x1c]
add eax, edi
mov cl, byte [eax + 0x8e]
mov byte [eax - 2], cl
cmp byte [ebx], 0
je 0x45b72b
mov eax, dword [esp + 0x98]
mov byte [eax], 1
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov al, cl
call fcn.0045e60d
test eax, eax
je 0x45b76f
push ecx
call fcn.0045e662
add esp, 4
test eax, eax
jne 0x45b76f
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
cmp eax, dword [edx]
jne 0x45b76f
mov eax, dword [esp + 0x80]
mov byte [eax], cl
mov eax, dword [esp + 0x50]
mov al, byte [eax]
mov ecx, dword [esp + 0x84]
mov byte [ecx], al
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx]
je 0x45b7a7
push eax
call fcn.0044068d
pop ecx
push eax
mov eax, dword [esp + 0x48]
push dword [eax]
call fcn.0044068d
pop ecx
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
push str.:8:ParseSybaseSA12___EOP:_Inv_d_is_a_multi_tender_invoice_with_an_inconsistant_total:__s___s
call fcn.00418e96
add esp, 0x10
jmp 0x45b7d2
mov eax, dword [esi]
add eax, dword [esp + 0x1c]
cmp byte [eax + edi + 0x8e], 0
mov eax, dword [esp + 0x18]
je 0x45b7c4
push dword [eax]
push str.:0:FYI:_ParseSybaseSA12___has_encountered_a_SafePay_multi_tender_invoice__d.
jmp 0x45b7cb
push dword [eax]
push str.:0:FYI:_ParseSybaseSA12___has_encountered_a_multi_tender_invoice__d.
call fcn.0041936e
pop ecx
pop ecx
dec dword [esp + 0x28]
sub dword [esp + 0x3c], 0x24
mov eax, 0x90
sub dword [esp + 0x1c], eax
sub dword [esp + 0x60], eax
sub dword [esp + 0x6c], eax
sub dword [esp + 0x68], eax
sub dword [esp + 0x34], eax
sub dword [esp + 0x78], eax
sub dword [esp + 0x64], eax
sub dword [esp + 0x8c], eax
sub dword [esp + 0x74], eax
sub dword [esp + 0x94], eax
sub dword [esp + 0x58], eax
sub dword [esp + 0x4c], eax
sub dword [esp + 0x54], eax
sub dword [esp + 0x7c], eax
sub dword [esp + 0x5c], eax
sub dword [esp + 0x9c], eax
sub dword [esp + 0x90], eax
sub dword [esp + 0x88], eax
sub dword [esp + 0x98], eax
sub dword [esp + 0x2c], eax
sub dword [esp + 0x80], eax
sub dword [esp + 0x50], eax
sub dword [esp + 0x84], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x44], eax
sub ebx, eax
sub esi, eax
sub dword [esp + 0x18], eax
jmp 0x45b86b
mov eax, 0x90
inc dword [esp + 0x28]
add dword [esp + 0x3c], 0x24
add dword [esp + 0x1c], eax
add dword [esp + 0x60], eax
add dword [esp + 0x6c], eax
add dword [esp + 0x68], eax
add dword [esp + 0x34], eax
add dword [esp + 0x78], eax
add dword [esp + 0x64], eax
add dword [esp + 0x8c], eax
add dword [esp + 0x74], eax
add dword [esp + 0x94], eax
add dword [esp + 0x58], eax
add dword [esp + 0x4c], eax
add dword [esp + 0x54], eax
add dword [esp + 0x7c], eax
add dword [esp + 0x5c], eax
add dword [esp + 0x9c], eax
add dword [esp + 0x90], eax
add dword [esp + 0x88], eax
add dword [esp + 0x98], eax
add dword [esp + 0x2c], eax
add dword [esp + 0x80], eax
add dword [esp + 0x50], eax
add dword [esp + 0x84], eax
add dword [esp + 0x20], eax
add dword [esp + 0x44], eax
add ebx, eax
add esi, eax
add dword [esp + 0x18], eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
push dword [esp + 0x70]
lea eax, [esp + 0x1d4]
push 0x3ff
push eax
call fcn.004416ea
add esp, 0xc
test eax, eax
jne 0x45af3e
mov ecx, dword [esp + 0x70]
push ebx
xor eax, eax
call fcn.004412f9
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0xa4]
pop ecx
mov dword [esi + 4], eax
call fcn.004715f4
cmp dword [esp + 0x28], ebx
jne 0x45b95e
cmp dword [esp + 0xac], ebx
jne 0x45b95e
or dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x9d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret