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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [ebx + 0x54]
mov eax, dword [ebx + 0x38]
push edi
mov edi, dword [ebx + 0x50]
mov ebp, dword [esi + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
add ebp, edi
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
jne 0x459782
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x54]
sub eax, dword [esi + 0x68]
jmp 0x4597d0
mov ecx, dword [eax]
mov edx, dword [esi + 0x50]
cmp ecx, edx
ja 0x459de2
jne 0x4597a0
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x68]
cmp dword [eax + 4], edx
ja 0x459de2
mov edx, dword [esi + 0x74]
cmp edx, ecx
jbe 0x4597b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
jne 0x4597c7
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 4]
cmp ecx, edx
jbe 0x4597c7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x459a89
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x459a89
mov eax, dword [esi + 0x11c]
cmp eax, 0xffffffff
jne 0x459800
mov dword [esp + 0x30], 0
jmp 0x459813
lea eax, [eax + esi + 0x11c]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x459896
lea eax, [esp + 0x30]
push eax
push 1
push 0x3c
push edi
call fcn.0048a570
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x459a85
mov edi, dword [esp + 0x30]
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push 0x408
lea edx, [ebx + 0x3c]
push ecx
push edx
push eax
call fcn.0045c010
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x45987c
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x50]
push ecx
push edx
call fcn.0048a640
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 1
jne 0x4598d7
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c830
add esp, 8
jmp 0x4598d7
mov ecx, dword [eax + 0x30]
cmp ecx, 0xffffffff
je 0x4598b7
mov edx, dword [eax + 0x34]
sub edx, ecx
mov dword [ecx + eax + 0x34], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
add ecx, eax
add dword [ecx], edx
jmp 0x4598d7
mov ecx, dword [eax + 0x34]
sub ecx, esi
lea edx, [ecx + eax - 0x11c]
mov dword [esi + 0x120], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov dword [ecx + eax], 0xffffffff
mov edx, dword [esi + 0x108]
lea edi, [esi + 0x10c]
inc edx
mov dword [esi + 0x108], edx
lea edx, [esp + 0x20]
push edx
push edi
call fcn.004504e0
add esp, 8
test eax, eax
jge 0x459909
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov ecx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [edx + 0x2c], ecx
mov eax, dword [esi + 0x114]
mov ecx, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x459957
sub eax, ecx
lea eax, [eax + esi + 0x114]
mov dword [ecx + 0x30], eax
mov edx, dword [esp + 0x30]
mov ecx, 0x30
mov eax, dword [edx + 0x30]
sub ecx, eax
mov eax, dword [esi + 0x114]
mov dword [esi + eax + 0x148], ecx
jmp 0x459970
mov dword [ecx + 0x30], 0xffffffff
mov edx, dword [esp + 0x30]
sub edx, esi
sub edx, 0xe4
mov dword [esi + 0x118], edx
mov eax, dword [esp + 0x30]
mov ecx, esi
sub eax, esi
sub eax, 0x114
mov dword [esi + 0x114], eax
mov eax, dword [esp + 0x30]
sub ecx, eax
add ecx, 0x114
mov dword [eax + 0x34], ecx
mov eax, dword [ebx + 0x48]
test byte [eax + 0x24], 1
jne 0x4599a9
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.0044c910
add esp, 8
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 1
jne 0x4599c1
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c830
add esp, 8
mov eax, dword [ebx + 0x48]
test byte [eax + 0x24], 1
jne 0x4599d8
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0044c830
add esp, 8
mov eax, dword [esi + 0x108]
dec eax
mov dword [esi + 0x108], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
mov ecx, eax
and al, 0xfe
mov dword [edx + 0x38], eax
mov eax, dword [esi + 0x11c]
mov edx, dword [esp + 0x30]
and ecx, 1
cmp eax, 0xffffffff
je 0x459a2c
sub eax, edx
lea eax, [eax + esi + 0x11c]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x30]
mov edx, 0x30
sub edx, dword [eax + 0x30]
mov eax, dword [esi + 0x11c]
mov dword [esi + eax + 0x150], edx
jmp 0x459a44
mov dword [edx + 0x30], 0xffffffff
mov eax, dword [esp + 0x30]
sub eax, esi
sub eax, 0xec
mov dword [esi + 0x120], eax
mov edx, dword [esp + 0x30]
sub edx, esi
sub edx, 0x11c
mov dword [esi + 0x11c], edx
mov eax, dword [esp + 0x30]
mov edx, esi
sub edx, eax
add edx, 0x11c
test ecx, ecx
mov dword [eax + 0x34], edx
je 0x4597bd
mov eax, dword [esi + 0x6c]
dec eax
mov dword [esi + 0x6c], eax
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
jmp 0x459a89
mov eax, dword [esp + 0x24]
test byte [ebp + 0x24], 1
jne 0x459aa1
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0044c830
mov eax, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jb 0x459c4e
jne 0x459abb
cmp eax, dword [esi + 0x78]
jb 0x459c4e
mov eax, dword [esi + 0x60]
xor edi, edi
test eax, eax
je 0x459b13
lea edx, [esi + 0x58]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004504e0
add esp, 8
test eax, eax
jl 0x459b13
mov ecx, dword [esi + 0x60]
mov edx, dword [ebx + 0x34]
push ecx
push edx
push ebx
call fcn.00459f20
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x459b07
test byte [ebp + 0x24], 1
jne 0x459c62
mov eax, dword [esp + 0x10]
push ebp
push eax
jmp 0x459c5a
mov dword [esi + 0x60], 0
mov edi, 1
test byte [ebx + 0x30], 4
je 0x459b23
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x50]
cmp ecx, eax
je 0x459b38
test edi, edi
je 0x459af2
push ebx
call fcn.0045a120
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x459af2
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x64]
mov edi, dword [esi + 0x60]
mov ebp, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
inc ecx
mov dword [esp + 0x18], edx
test eax, eax
mov dword [esi + 0x6c], ecx
je 0x459b72
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x48]
test byte [eax + 0x24], 1
jne 0x459b72
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0044c910
add esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, 0x10
push edx
push eax
call fcn.0047b970
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x459be2
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 1
jne 0x459ba9
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.0044c910
add esp, 8
jmp 0x459bad
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x459bcc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x48]
test byte [eax + 0x24], 1
jne 0x459bcc
push eax
push esi
call fcn.0044c830
add esp, 8
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0043ed40
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esi + 0x74], ebp
mov dword [esi + 0x78], ebx
test edi, edi
jne 0x459bf3
mov eax, dword [esp + 0x18]
mov dword [esi + 0x78], eax
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x24], 1
jne 0x459c0d
mov eax, dword [esp + 0x10]
mov edx, ecx
push edx
push eax
call fcn.0044c910
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x459c30
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x48]
test byte [eax + 0x24], 1
jne 0x459c30
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.0044c830
add esp, 8
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0xa8]
dec ecx
inc eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0xa8], eax
mov dword [esp + 0x18], 1
jmp 0x459c62
test byte [ebp + 0x24], 1
jne 0x459c62
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call fcn.0044c910
add esp, 8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x459c84
mov eax, dword [esi + 0x114]
mov edi, 1
cmp eax, 0xffffffff
jne 0x459cb6
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0x18]
cmp dword [esi + 0xc8], ebp
jae 0x459c96
mov dword [esi + 0xc8], ebp
mov eax, dword [esi + 0xcc]
cmp eax, ebp
ja 0x459ca4
test eax, eax
jne 0x459caa
mov dword [esi + 0xcc], ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x18]
lea eax, [eax + esi + 0x114]
test eax, eax
mov dword [esp + 0x30], eax
je 0x459c88
mov ebx, dword [esp + 0x10]
add eax, 0x28
push eax
lea eax, [esi + 0x74]
push eax
call fcn.004504e0
add esp, 8
test eax, eax
jle 0x459d45
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 1
jne 0x459cf9
push eax
push ebx
call fcn.0044c910
mov eax, dword [esp + 0x38]
add esp, 8
mov ecx, dword [eax + 0x30]
cmp ecx, 0xffffffff
je 0x459d22
mov edx, dword [eax + 0x34]
sub edx, ecx
mov dword [ecx + eax + 0x34], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
add ecx, eax
mov eax, dword [ecx]
add eax, edx
inc ebp
mov dword [ecx], eax
jmp 0x459db8
mov ecx, dword [eax + 0x34]
sub ecx, esi
inc ebp
lea edx, [ecx + eax - 0x114]
mov dword [esi + 0x118], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov dword [ecx + eax], 0xffffffff
jmp 0x459db8
cmp edi, 1
jne 0x459db8
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x38]
or edx, edi
mov dword [eax + 0x38], edx
mov eax, dword [esp + 0x30]
test byte [eax + 0x24], 1
jne 0x459d6e
push eax
push ebx
call fcn.0044c910
mov eax, dword [esp + 0x38]
add esp, 8
mov ecx, dword [eax + 0x30]
cmp ecx, 0xffffffff
je 0x459d8f
mov edx, dword [eax + 0x34]
sub edx, ecx
mov dword [ecx + eax + 0x34], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
add ecx, eax
add dword [ecx], edx
jmp 0x459daf
mov ecx, dword [eax + 0x34]
sub ecx, esi
lea edx, [ecx + eax - 0x114]
mov dword [esi + 0x118], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x34]
mov dword [ecx + eax], 0xffffffff
mov eax, dword [esi + 0x6c]
inc eax
xor edi, edi
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x30]
cmp ecx, 0xffffffff
je 0x459dd5
add eax, ecx
mov dword [esp + 0x30], eax
je 0x459c88
jmp 0x459ccd
mov dword [esp + 0x30], 0
jmp 0x459c88
mov edx, dword [esp + 0x10]
push str.DB_ENV__log_flush:_LSN_past_current_end_of_log
push edx
call fcn.0043eea0
add esp, 8
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret